summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/t35.C
blob: 70d8846f984b49661cf7a5cebf1a603e2a42d4c3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// { dg-do assemble  }
// { dg-options "" }
template<class X> struct A {
  A ();
  ~A();
  int x, y, z;
};

template <class Y> inline A<Y>::A () { x = y = 3; z = 99; }
template <class Z> inline A<Z>::~A() { y = 9999; }

A<int> ai;