Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/g++.dg/torture/pr91155.C @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 |
parents | |
children |
rev | line source |
---|---|
145 | 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 } |