summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/t38.C
blob: 5a9da92f8ddd713f1e79977d94392e7a03bc1ab7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// { dg-do assemble  }
// { dg-options "" }
extern "C" int printf (const char *, ...);

template<class X> struct A {
  A (int, char);
  ~A ();
  A (X *, float);
};

template<class Y> inline A<Y>::A (int i, char c) {
  printf ("%d, %d\n", i, c);
}
template<class Z> A<Z>::~A() {}
template<class W> A<W>::A (W * d, float f) {
  printf ("%x, %e\n", d, f);
}

A<void> avoid (9, 0);