FSF GCC merge 02/23/03
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.pt / memtemp9.C
blob943dbfb7767a5f499e06f70463284e39218a58b0
1 // Build don't run:
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();
17 int main()
19   S s;
21   int i = s.operator int();