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