diff options
author | tromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-05-02 19:33:44 +0000 |
---|---|---|
committer | tromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-05-02 19:33:44 +0000 |
commit | 3127c3578f232a6b59c622134694c64a00c7f6e9 (patch) | |
tree | bdc237ad2964e2effe02d52d9c8f7d2f4f5419cb /gcc | |
parent | 43bd286f942a79975a566d675d6283e14f16842f (diff) | |
download | gcc-3127c3578f232a6b59c622134694c64a00c7f6e9.tar.gz |
libcpp
PR preprocessor/28709:
* macro.c (paste_tokens): Remove PASTE_LEFT from the old lhs.
gcc/testsuite
PR preprocessor/28709:
* gcc.dg/cpp/pr28709.c: New file.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@124356 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/cpp/pr28709.c | 8 |
2 files changed, 13 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 287a0973101..d8493a1f3a9 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2007-05-02 Tom Tromey <tromey@redhat.com> + + PR preprocessor/28709: + * gcc.dg/cpp/pr28709.c: New file. + 2007-05-02 Richard Guenther <rguenther@suse.de> PR tree-optimization/31146 diff --git a/gcc/testsuite/gcc.dg/cpp/pr28709.c b/gcc/testsuite/gcc.dg/cpp/pr28709.c new file mode 100644 index 00000000000..11cccbe8b5d --- /dev/null +++ b/gcc/testsuite/gcc.dg/cpp/pr28709.c @@ -0,0 +1,8 @@ +/* Copyright (C) 2006 Free Software Foundation, Inc. */ +/* PR preprocessor/28709 */ + +/* { dg-do compile } */ +#define foo - ## >> +foo; +/* { dg-error "expected identifier.*'-'" "" { target *-*-* } 6 } */ +/* { dg-error pasting "" { target *-*-* } 6 } */ |