gcc/testsuite/gcc.dg/cpp/pr28709.c
raw| 1 | /* Copyright (C) 2006 Free Software Foundation, Inc. */ |
| 2 | /* PR preprocessor/28709 */ |
| 3 | |
| 4 | /* { dg-options "-ftrack-macro-expansion=0" } |
| 5 | { dg-do compile } */ |
| 6 | |
| 7 | #define foo - ## >> |
| 8 | foo; |
| 9 | /* { dg-error "expected identifier.*'-'" "expected" { target *-*-* } .-1 } */ |
| 10 | /* { dg-error pasting "pasting" { target *-*-* } .-2 } */ |