summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/t18.C
blob: de7a381c6588d0c8f551f0a67d0659a62bcb0b05 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// { dg-do assemble  }

extern void byebye ();
template <class T1, class T2>
struct A
{
  T1 t1;
  T2 t2;
  A() { t1 = 0; t2 = 0; }
  ~A() { byebye(); }
};

template <class Q>
int f (A<int, Q> a) {
  return a.t1;
}

extern A<int,double*> aa;
int foop () { return f(aa); }