blob: 04e4f7ab41b8012d8c3ff3a10358e3beed9bc591 [file] [log] [blame]
/* PR c++/91155. */
template< char C > struct dummy {};
template< typename T > const char *test()
{
__builtin_printf ("test: %s\n", __PRETTY_FUNCTION__);
return __PRETTY_FUNCTION__;
}
int main()
{
if (__builtin_strcmp ("const char* test() [with T = dummy<\'\\000\'>]", test< dummy< '\0' > > ()) != 0)
{};// __builtin_abort ();
if (__builtin_strcmp ("const char* test() [with T = dummy<\'\\\'\'>]", test< dummy< '\'' > > ()) != 0)
{};// __builtin_abort ();
return 0;
}