summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/memtemp15.C
blob: b9b69873a2470646bbd23c035d386e5308d9dae0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// { dg-do assemble  }
// 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");
}