diff options
Diffstat (limited to 'gcc/testsuite/gcc.dg/cpp/pr30786.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/cpp/pr30786.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/cpp/pr30786.c b/gcc/testsuite/gcc.dg/cpp/pr30786.c new file mode 100644 index 000000000..f39f83cc8 --- /dev/null +++ b/gcc/testsuite/gcc.dg/cpp/pr30786.c @@ -0,0 +1,9 @@ +/* PR preprocessor/30786 - _Pragma at end of file should not ICE */ +/* { dg-do compile } */ + +/* { dg-error "parenthesized" "" { target *-*-* } 9 } */ +/* { dg-error "expected" "" { target *-*-* } 9 } */ + +int x; + +_Pragma |