* c-common.c (get_priority): Add check for
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.pt / memtemp3.C
blobc3b78533f6552828ee899ad5f092807238d610c7
1 // { dg-do link  }
2 // GROUPS passed templates membertemplates
3 extern "C" int printf(const char*, ...);
5 struct S {
6   template <class T>
7   void foo(T);
8 };
11 template <class T>
12 void S::foo(T)
14   printf("Hello, world.\n");
19 int main()
21   S s;
22   s.foo(3);
23   s.foo(s);