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

int main()
{
  S<int>::f(3);
  S<char>::f("abc");
  S<int>::f("abc");
}