FSF GCC merge 02/23/03
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.pt / memtemp77.C
blobd8d70c51f8fc0d2a6837a16474b7a421f4808ec4
1 extern "C" int strcmp(const char*, const char*);
3 template <class T>
4 struct S3
6   template <class U>
7   static const char* h(U);
8 };
10 template <>
11 template <>
12 const char* S3<double>::h(int) { return __PRETTY_FUNCTION__; }
14 template <>
15 template <>
16 const char* S3<char>::h(int) { return __PRETTY_FUNCTION__; }
18 int main()
20   if (strcmp (S3<double>::h(7), 
21               "static const char* S3<T>::h(U) [with U = int, T = double]") == 0)
22     return 0;
23   else 
24     return 1;