diff options
author | zack <zack@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-04-06 21:31:13 +0000 |
---|---|---|
committer | zack <zack@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-04-06 21:31:13 +0000 |
commit | e99ca799e865e6adf6690480e561ac34e6934ff7 (patch) | |
tree | 48872df92027c51e3eea317da9585eb56f89eefe | |
parent | f13ff06828ff654f1e3e1db72c6828087f280aa8 (diff) |
Regression test for current cpplib bug.
Should not fail if you are using cccp.
Expect it to fail if you are using cpplib.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@26224 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | gcc/testsuite/gcc.dg/990407-1.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/990407-1.c b/gcc/testsuite/gcc.dg/990407-1.c new file mode 100644 index 00000000000..96b3f862639 --- /dev/null +++ b/gcc/testsuite/gcc.dg/990407-1.c @@ -0,0 +1,18 @@ +/* Regression test for a cpplib macro-expansion bug where + `@' becomes `@@' when stringified. */ + +/* { dg-do run } */ + +#include <string.h> + +#define STR(x) #x + +char *a = STR(@foo), *b = "@foo"; + +int +main(void) +{ + if (strcmp (a, b)) + abort (); + return 0; +} |