aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite')
-rw-r--r--gcc/testsuite/ChangeLog5
-rw-r--r--gcc/testsuite/gcc.dg/pr69900.c6
2 files changed, 11 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 4d2fd43..f83aa50 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2016-02-23 Jakub Jelinek <jakub@redhat.com>
+
+ PR c/69900
+ * gcc.dg/pr69900.c: New test.
+
2016-02-23 Martin Jambor <mjambor@suse.cz>
PR tree-optimization/69666
diff --git a/gcc/testsuite/gcc.dg/pr69900.c b/gcc/testsuite/gcc.dg/pr69900.c
new file mode 100644
index 0000000..2761d9f
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/pr69900.c
@@ -0,0 +1,6 @@
+/* PR c/69900 */
+/* { dg-do compile } */
+
+#pragma GCC diagnostic error "-Wunreachable-code" /* { dg-bogus "is not an option that controls warnings" } */
+#pragma GCC diagnostic warning "-Wunreachable-code" /* { dg-bogus "is not an option that controls warnings" } */
+#pragma GCC diagnostic ignored "-Wunreachable-code" /* { dg-bogus "is not an option that controls warnings" } */