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

struct B { int foo (); };
int B::foo() { return 37; }

template <class A> struct X {
  void f();
};

template <class A> void X<A>::f ()
{}

X<int> x;

void xyzzy () {
  x.f ();
}