contrib/compare_tests gets confused if the same message is printed for
the same line but with different status (PASS vs. XFAIL). Trivially
fixed by giving different labels to each test. Committed as obvious.

2012-04-08  Manuel López-Ibáñez  <m...@gcc.gnu.org>

        * g++.dg/warn/Wstrict-aliasing-float-ref-int-obj.C: Add labels to
        directives.

Index: gcc/testsuite/g++.dg/warn/Wstrict-aliasing-float-ref-int-obj.C
===================================================================
--- gcc/testsuite/g++.dg/warn/Wstrict-aliasing-float-ref-int-obj.C
 (revision 186215)
+++ gcc/testsuite/g++.dg/warn/Wstrict-aliasing-float-ref-int-obj.C
 (working copy)
@@ -4,9 +4,9 @@

 int foo() {
   int x;
-  float& q = reinterpret_cast<float&> (x);  /* { dg-message
"dereferencing type-punned" "" { target *-*-* } } */
-  q = 1.0; /* { dg-warning "does break strict-aliasing" "" { xfail *-*-* } } */
+  float& q = reinterpret_cast<float&> (x);  /* { dg-message
"dereferencing type-punned" "deref" { target *-*-* } } */
+  q = 1.0; /* { dg-warning "does break strict-aliasing"
"strict-aliasing" { xfail *-*-* } } */
   return x;
 }

-/* { dg-message "initialized" "" { xfail *-*-* } 7 } */
+/* { dg-message "initialized" "note" { xfail *-*-* } 7 } */

Reply via email to