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