comparison gcc/testsuite/gcc.dg/cpp/19990407-1.c @ 111:04ced10e8804

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900
parents
children
comparison
equal deleted inserted replaced
68:561a7518be6b 111:04ced10e8804
1 /* Regression test for a cpplib macro-expansion bug where
2 `@' becomes `@@' when stringified. */
3
4 /* { dg-do run } */
5
6 #include <string.h>
7 #include <stdlib.h>
8
9 #define STR(x) #x
10
11 char *a = STR(@foo), *b = "@foo";
12
13 int
14 main(void)
15 {
16 if (strcmp (a, b))
17 abort ();
18 return 0;
19 }