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
This commit is contained in:
Manuel López-Ibáñez 2015-09-21 12:26:18 +00:00
parent 561cfdec25
commit 70b95cee51
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,7 @@
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

View File

@ -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" } */