aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/memtemp18.C
blob: 638e5e3385271bdf8f12dd4d64384cff8e42985f (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
struct S
{
  template <class T>
  void foo(T) {}
};

template void S::foo(int);

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