diff options
Diffstat (limited to 'gcc-4.9/gcc/testsuite/gcc.dg/two-types-9.c')
-rw-r--r-- | gcc-4.9/gcc/testsuite/gcc.dg/two-types-9.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc-4.9/gcc/testsuite/gcc.dg/two-types-9.c b/gcc-4.9/gcc/testsuite/gcc.dg/two-types-9.c new file mode 100644 index 000000000..c6da94992 --- /dev/null +++ b/gcc-4.9/gcc/testsuite/gcc.dg/two-types-9.c @@ -0,0 +1,10 @@ +/* { dg-do compile } */ +/* { dg-options "-std=gnu89" } // suppress default -pedantic-errors */ + +struct f {} +static int a, b; /* { dg-error "expected ';', identifier or " "" } */ + +int f() +{ + return a - b; /* { dg-bogus "invalid operands " "" } */ +} |