diff options
Diffstat (limited to 'gcc/testsuite/gcc.dg/cpp/pr28709.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/cpp/pr28709.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/cpp/pr28709.c b/gcc/testsuite/gcc.dg/cpp/pr28709.c new file mode 100644 index 000000000..11cccbe8b --- /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 } */ |