diff options
Diffstat (limited to 'gcc-4.9/gcc/testsuite/gcc.dg/cpp/pr30786.c')
-rw-r--r-- | gcc-4.9/gcc/testsuite/gcc.dg/cpp/pr30786.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gcc-4.9/gcc/testsuite/gcc.dg/cpp/pr30786.c b/gcc-4.9/gcc/testsuite/gcc.dg/cpp/pr30786.c new file mode 100644 index 000000000..2c3610847 --- /dev/null +++ b/gcc-4.9/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" "parenthesized" { target *-*-* } 9 } */ +/* { dg-error "expected" "expected" { target *-*-* } 9 } */ + +int x; + +_Pragma |