This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[committed] Add labels to g++.dg/warn/Wstrict-aliasing-float-ref-int-obj.C


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]