re PR c++/16630 (missing type name in __PRETTY_FUNCTION__)

2010-07-04  Manuel López-Ibáñez  <manu@gcc.gnu.org>

	PR c++/16630
	* g++.dg/ext/pretty3.C: New.

From-SVN: r161805
parent abbd64b9
2010-07-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
PR c++/16630
* g++.dg/ext/pretty3.C: New.
2010-07-04 Richard Guenther <rguenther@suse.de>
PR middle-end/44809
......
// 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\\)" } }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment