diff options
author | Manuel López-Ibáñez <manu@gcc.gnu.org> | 2015-09-21 12:26:18 +0000 |
---|---|---|
committer | Manuel López-Ibáñez <manu@gcc.gnu.org> | 2015-09-21 12:26:18 +0000 |
commit | 70b95cee5114e180bef9785b88e3c7153888978b (patch) | |
tree | 20d5047f5fa95c7863fb5b2e008634e621eeaf95 /gcc | |
parent | 561cfdec2537f0999ba708cf6c0bc0371bdd781b (diff) | |
download | gcc-70b95cee5114e180bef9785b88e3c7153888978b.zip gcc-70b95cee5114e180bef9785b88e3c7153888978b.tar.gz gcc-70b95cee5114e180bef9785b88e3c7153888978b.tar.bz2 |
Catch excess warning in gcc.dg/pragma-diag-5.c
We xfail at emitting the correct location, but we still need to catch the
warning.
2015-09-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
* gcc.dg/pragma-diag-5.c: Catch excess warning.
From-SVN: r227967
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/pragma-diag-5.c | 3 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 82d6773..287a822 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,5 +1,9 @@ 2015-09-21 Manuel López-Ibáñez <manu@gcc.gnu.org> + * gcc.dg/pragma-diag-5.c: Fix excess warning. + +2015-09-21 Manuel López-Ibáñez <manu@gcc.gnu.org> + PR middle-end/60832 * gcc.dg/pr53265.c: Update. diff --git a/gcc/testsuite/gcc.dg/pragma-diag-5.c b/gcc/testsuite/gcc.dg/pragma-diag-5.c index 64fe97f..18f0789 100644 --- a/gcc/testsuite/gcc.dg/pragma-diag-5.c +++ b/gcc/testsuite/gcc.dg/pragma-diag-5.c @@ -1,5 +1,6 @@ /* { dg-do compile } */ -#pragma GCC diagnostic /* { dg-warning "24:missing" "missing" { xfail *-*-* } } */ +#pragma GCC diagnostic /* { dg-warning "missing" "missing" } */ +/* { dg-warning "24:missing" "missing" { xfail *-*-* } 2 } */ #pragma GCC diagnostic warn /* { dg-warning "24:expected" } */ |