summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/memtemp33.C
blob: 917da1ef2ee9212d3bf28a2f05c0744c1e68d6ea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// { dg-do link  }
// GROUPS passed templates membertemplates
extern "C" int printf(const char*, ...);

template <class T>
struct S
{
  template <class U>
  void g(U u)
  { i; }

  int i;
};

int main()
{
  S<char> s;
  s.g(3);
}