aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/memtemp77.C
blob: ca4cf20e7dfb75831741d07f6b9f56cbcf5658ca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
extern "C" int strcmp(const char*, const char*);

template <class T>
struct S3
{
  template <class U>
  static char* h(U);
};

template <>
template <>
char* S3<double>::h(int) { return __PRETTY_FUNCTION__; }

template <>
template <>
char* S3<char>::h(int) { return __PRETTY_FUNCTION__; }

int main()
{
  if (strcmp (S3<double>::h(7), 
	      "static char * S3<double>::h<int>(int)") == 0)
    return 0;
  else 
    return 1;
}