Catch excess warning in gcc.dg/pragma-diag-5.c
authorManuel López-Ibáñez <manu@gcc.gnu.org>
Mon, 21 Sep 2015 12:26:18 +0000 (12:26 +0000)
committerManuel López-Ibáñez <manu@gcc.gnu.org>
Mon, 21 Sep 2015 12:26:18 +0000 (12:26 +0000)
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

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pragma-diag-5.c

index 82d67739ec402c6ca3fa858b209ba5e4564c2b26..287a822e73db622b36354e3d4902a49ec39f239f 100644 (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
index 64fe97fc3f0a4d82d00f6a827edf5826edb70a0c..18f0789f9dfaac7c1cb3b4c11cf37d34b77918f9 100644 (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" } */