Debian Codegraph @

gcc/testsuite/g++.old-deja/g++.pt/memtemp32.C

raw
1 // { dg-do link }
2 // GROUPS passed templates membertemplates
3 extern "C" int printf(const char*, ...);
4
5 struct S
6 {
7 template <class U>
8 void g(U u)
9 { i = 3; }
10
11 int i;
12 };
13
14 int main()
15 {
16 S s;
17 s.g(3);
18 }