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