aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.6/gcc/testsuite/g++.dg/ext/pretty3.C
blob: 01b14579af2241a73d6926ceabc01df2c6009b21 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// PR c++/16630
// { dg-do compile }
// { dg-options "" }
extern "C" int printf (const char*, ...);

template <class T>
struct B { typedef T X; };

template <class U>
struct D
{
  const char* foo (typename B<U>::X) { return __PRETTY_FUNCTION__; }
};

int main ()
{
  printf ("%s\n", D<int>().foo (0));
}
// { dg-final { scan-assembler "const char\\* D<U>::foo\\(typename B<U>::X\\)" } }