summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/memtemp31.C
blob: ad6688718bd3cd0a49ed4b3108a6727efaabddaf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// { dg-do link  }
// 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);
}