| 1 |
/* PR c++/91155. */ |
| 2 |
|
| 3 |
template< char C > struct dummy {}; |
| 4 |
|
| 5 |
template< typename T > const char *test() |
| 6 |
{ |
| 7 |
__builtin_printf ("test: %s\n", __PRETTY_FUNCTION__); |
| 8 |
return __PRETTY_FUNCTION__; |
| 9 |
} |
| 10 |
|
| 11 |
int main() |
| 12 |
{ |
| 13 |
if (__builtin_strcmp ("const char* test() [with T = dummy<\'\\000\'>]", test< dummy< '\0' > > ()) != 0) |
| 14 |
{};// __builtin_abort (); |
| 15 |
if (__builtin_strcmp ("const char* test() [with T = dummy<\'\\\'\'>]", test< dummy< '\'' > > ()) != 0) |
| 16 |
{};// __builtin_abort (); |
| 17 |
return 0; |
| 18 |
} |