Debian Codegraph @

gcc/testsuite/gcc.dg/cpp/19990407-1.c

raw
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 }