summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/t38.C
blob: cd892822b143133645e2957260a66fa25b1d0272 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// Build don't link: 
// Special g++ 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);