aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/memtemp31.C
blob: 3bb1cd3dd9917edb36b8a9db7126bd1bd88c9f04 (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
extern "C" int printf(const char*, ...);

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

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