Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / g++.old-deja / g++.pt / memtemp19.C
blob2f9dec9ae63c47d49d18a7e51418bc0b2802d4a8
1 // { dg-do link  }
2 // GROUPS passed templates membertemplates
3 extern "C" int printf(const char*, ...);
5 struct S {
6   template <class T>
7   operator T();
8 };
10 template <class T>
11 S::operator T()
13   printf("Hello, world.\n");
14   return T();
18 template S::operator int();
20 int main()
22   S s;
24   int i = s.operator int();