aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/cpp-tradstringify.c
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2000-05-02 18:33:44 +0200
committerJakub Jelinek <jakub@gcc.gnu.org>2000-05-02 18:33:44 +0200
commit9900f597fa923f84cb0bc44d7383c79e6aed543b (patch)
treeeb5485cc17fcae1c0be5c73c073a5072abd2e176 /gcc/testsuite/gcc.dg/cpp-tradstringify.c
parentc56c2073a6268960931acd0b852b6186d4bde179 (diff)
downloadgcc-9900f597fa923f84cb0bc44d7383c79e6aed543b.zip
gcc-9900f597fa923f84cb0bc44d7383c79e6aed543b.tar.gz
gcc-9900f597fa923f84cb0bc44d7383c79e6aed543b.tar.bz2
cpphash.c (trad_stringify): Adjust p after stringification as well.
* cpphash.c (trad_stringify): Adjust p after stringification as well. * gcc.dg/cpp-tradstringify.c: New test. From-SVN: r33612
Diffstat (limited to 'gcc/testsuite/gcc.dg/cpp-tradstringify.c')
-rw-r--r--gcc/testsuite/gcc.dg/cpp-tradstringify.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/cpp-tradstringify.c b/gcc/testsuite/gcc.dg/cpp-tradstringify.c
new file mode 100644
index 0000000..3a568ce
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/cpp-tradstringify.c
@@ -0,0 +1,4 @@
+/* Test whether traditional stringify works. */
+/* { dg-do preprocess } */
+/* { dg-options "-traditional" } */
+#define foo(a, b) c="a"; d="b";