From 70b95cee5114e180bef9785b88e3c7153888978b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20L=C3=B3pez-Ib=C3=A1=C3=B1ez?= Date: Mon, 21 Sep 2015 12:26:18 +0000 Subject: [PATCH] Catch excess warning in gcc.dg/pragma-diag-5.c MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We xfail at emitting the correct location, but we still need to catch the warning. 2015-09-21 Manuel López-Ibáñez * gcc.dg/pragma-diag-5.c: Catch excess warning. From-SVN: r227967 --- gcc/testsuite/ChangeLog | 4 ++++ gcc/testsuite/gcc.dg/pragma-diag-5.c | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 82d67739ec4..287a822e73d 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2015-09-21 Manuel López-Ibáñez + + * gcc.dg/pragma-diag-5.c: Fix excess warning. + 2015-09-21 Manuel López-Ibáñez PR middle-end/60832 diff --git a/gcc/testsuite/gcc.dg/pragma-diag-5.c b/gcc/testsuite/gcc.dg/pragma-diag-5.c index 64fe97fc3f0..18f0789f9df 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" } */