diff options
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.brendan/misc12.C')
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.brendan/misc12.C | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/misc12.C b/gcc/testsuite/g++.old-deja/g++.brendan/misc12.C new file mode 100644 index 00000000000..73db9bfccd4 --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.brendan/misc12.C @@ -0,0 +1,16 @@ +// GROUPS passed miscellaneous +extern "C" void exit (int); +extern "C" int printf (char *, ...); + +/* Make sure cp-lex.c handles these properly--if this links, that means + it emitted the strings instead of __FUNCTION__.0, etc. */ + +int +main() +{ + char *a = __FUNCTION__; + char *b = __PRETTY_FUNCTION__; + + printf ("PASS\n"); + exit (0); +} |