aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/memtemp34.C
blob: 29e11017acf4fa931bc8148f6baa31d6956d3f2f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Build don't run:
// 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");
}