projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a458ad1
)
Regression test for current cpplib bug.
author
Zack Weinberg
<zack@gcc.gnu.org>
Tue, 6 Apr 1999 21:31:13 +0000
(21:31 +0000)
committer
Zack Weinberg
<zack@gcc.gnu.org>
Tue, 6 Apr 1999 21:31:13 +0000
(21:31 +0000)
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
[new file with mode: 0644]
patch
|
blob
diff --git a/gcc/testsuite/gcc.dg/990407-1.c
b/gcc/testsuite/gcc.dg/990407-1.c
new file mode 100644
(file)
index 0000000..
96b3f86
--- /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;
+}