aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr69900.c
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2016-02-23 13:57:32 +0100
committerJakub Jelinek <jakub@gcc.gnu.org>2016-02-23 13:57:32 +0100
commitf1a62b6fa8c1e5305d887559575506755f8aab69 (patch)
tree151b8ad8f05e703cb1c59f88f45153e4d706d4cf /gcc/testsuite/gcc.dg/pr69900.c
parent261e741f643fd6626cb9161e472628f300fd76ac (diff)
downloadgcc-f1a62b6fa8c1e5305d887559575506755f8aab69.zip
gcc-f1a62b6fa8c1e5305d887559575506755f8aab69.tar.gz
gcc-f1a62b6fa8c1e5305d887559575506755f8aab69.tar.bz2
re PR c/69900 (Unhelpful diagnostic about Ignored options)
PR c/69900 * common.opt (Wunreachable-code): Add Warning flag. * gcc.dg/pr69900.c: New test. From-SVN: r233630
Diffstat (limited to 'gcc/testsuite/gcc.dg/pr69900.c')
-rw-r--r--gcc/testsuite/gcc.dg/pr69900.c6
1 files changed, 6 insertions, 0 deletions
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" } */