aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.dg/990506-0.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc-4.9/gcc/testsuite/gcc.dg/990506-0.c')
-rw-r--r--gcc-4.9/gcc/testsuite/gcc.dg/990506-0.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/gcc-4.9/gcc/testsuite/gcc.dg/990506-0.c b/gcc-4.9/gcc/testsuite/gcc.dg/990506-0.c
new file mode 100644
index 000000000..3cd3be3fe
--- /dev/null
+++ b/gcc-4.9/gcc/testsuite/gcc.dg/990506-0.c
@@ -0,0 +1,9 @@
+/* Verify that a diagnostic is issued without crashing due to
+ --enable-checking catching a bug in the C front end. */
+/* { dg-do compile } */
+x()
+{
+ foo (i);
+ /* { dg-error "undeclared" "undeclared-variable message" { target *-*-* } { 6 } } */
+ /* { dg-message "function it appears in" "reminder message" { target *-*-* } { 6 } } */
+}