summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/memtemp18.C
blob: b51f4dbe78e261c186f7a8fa3f58bf5fb7b35c10 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// { dg-do assemble  }
// GROUPS passed templates membertemplates
struct S
{
  template <class T>
  void foo(T) {}
};

template void S::foo(int);

int main()
{
  S s;
  s.foo(3);
}