summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/memtemp15.C
blob: 140730ba7255ef9a6865f9e6a7b2d92604146c91 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Build don't link:
// GROUPS passed templates membertemplates
template <class T>
struct S
{
  template <class U>
  void foo(U) {}
};


void f()
{
  S<int> s;
  s.foo(3);
  s.foo("hello");
}