From e8f5c18f1a3990928272cc48901a8808735769f1 Mon Sep 17 00:00:00 2001 From: Zack Weinberg Date: Tue, 6 Apr 1999 21:31:13 +0000 Subject: [PATCH] Regression test for current cpplib bug. Should not fail if you are using cccp. Expect it to fail if you are using cpplib. From-SVN: r26224 --- gcc/testsuite/gcc.dg/990407-1.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 gcc/testsuite/gcc.dg/990407-1.c 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 + +#define STR(x) #x + +char *a = STR(@foo), *b = "@foo"; + +int +main(void) +{ + if (strcmp (a, b)) + abort (); + return 0; +} -- 2.30.2