This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[committed] Add labels to g++.dg/warn/Wstrict-aliasing-float-ref-int-obj.C
- From: Manuel López-Ibáñez <lopezibanez at gmail dot com>
- To: Gcc Patch List <gcc-patches at gcc dot gnu dot org>
- Date: Sun, 8 Apr 2012 00:09:40 +0200
- Subject: [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 } */