1// PR c++/45487
2// { dg-do run  }
3
4extern "C" int strcmp(const char*, const char*);
5
6template <typename T>
7const char* foo(T, typename T::type c) { return __PRETTY_FUNCTION__; }
8
9struct x {typedef int type;};
10
11int main()
12{
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;
18}
19