diff options
author | Jakub Jelinek <jakub@redhat.com> | 2016-02-23 13:57:32 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2016-02-23 13:57:32 +0100 |
commit | f1a62b6fa8c1e5305d887559575506755f8aab69 (patch) | |
tree | 151b8ad8f05e703cb1c59f88f45153e4d706d4cf /gcc/testsuite/gcc.dg/pr69900.c | |
parent | 261e741f643fd6626cb9161e472628f300fd76ac (diff) | |
download | gcc-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.c | 6 |
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" } */ |