diff options
-rw-r--r-- | gcc/testsuite/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/noncompile/init-3.c | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index ebaa50f..4c24981 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2000-10-20 Jakub Jelinek <jakub@redhat.com> + + * gcc.dg/noncompile/init-3.c: New test. + 2000-10-20 Joseph S. Myers <jsm28@cam.ac.uk> * gcc.dg/format-array-1.c: New test. diff --git a/gcc/testsuite/gcc.dg/noncompile/init-3.c b/gcc/testsuite/gcc.dg/noncompile/init-3.c new file mode 100644 index 0000000..fe95435 --- /dev/null +++ b/gcc/testsuite/gcc.dg/noncompile/init-3.c @@ -0,0 +1,4 @@ +void die(void) +{ + char foo[BAR] = "1234"; /* { dg-error "undeclared|function|incomplete type" } */ +} |