[PR c++/84702] ICE with default tmpl arg of overload set
[official-gcc.git] / gcc / testsuite / g++.dg / ext / pretty3.C
blob01b14579af2241a73d6926ceabc01df2c6009b21
1 // PR c++/16630
2 // { dg-do compile }
3 // { dg-options "" }
4 extern "C" int printf (const char*, ...);
6 template <class T>
7 struct B { typedef T X; };
9 template <class U>
10 struct D
12   const char* foo (typename B<U>::X) { return __PRETTY_FUNCTION__; }
15 int main ()
17   printf ("%s\n", D<int>().foo (0));
19 // { dg-final { scan-assembler "const char\\* D<U>::foo\\(typename B<U>::X\\)" } }