Rebase.
[official-gcc.git] / gcc / testsuite / g++.dg / diagnostic / bindings1.C
blob4972377a212e3b32dbc4ea34fa00498c75d0a545
1 // PR c++/45487
2 // { dg-do run  }
4 extern "C" int strcmp(const char*, const char*);
6 template <typename T>
7 const char* foo(T, typename T::type c) { return __PRETTY_FUNCTION__; }
9 struct x {typedef int type;};
11 int main()
13   if (strcmp (foo(x(), 3), "const char* foo(T, typename T::type) "
14               "[with T = x; typename T::type = int]") == 0)
15     return 0;
16   else 
17     return 1;