diff options
Diffstat (limited to 'gcc/testsuite/gcc.dg/init-bad-5.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/init-bad-5.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/init-bad-5.c b/gcc/testsuite/gcc.dg/init-bad-5.c new file mode 100644 index 000000000..18cee43b5 --- /dev/null +++ b/gcc/testsuite/gcc.dg/init-bad-5.c @@ -0,0 +1,5 @@ +/* PR c/28136 */ +/* { dg-do compile } */ +/* { dg-options "" } */ + +int i = (struct A[]) {}; /* { dg-error "incomplete|empty|initialization" } */ |