From 0058db43668afb4e1d11e46df03b6c5d62fa5462 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Manuel=20L=C3=B3pez-Ib=C3=A1=C3=B1ez?= Date: Sat, 7 Apr 2012 22:09:42 +0000 Subject: [PATCH] Wstrict-aliasing-float-ref-int-obj.C: Add labels to directives. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 2012-04-08 Manuel López-Ibáñez * g++.dg/warn/Wstrict-aliasing-float-ref-int-obj.C: Add labels to directives. From-SVN: r186216 --- gcc/testsuite/ChangeLog | 5 +++++ .../g++.dg/warn/Wstrict-aliasing-float-ref-int-obj.C | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 77436679ee0..abe15aedb41 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2012-04-08 Manuel López-Ibáñez + + * g++.dg/warn/Wstrict-aliasing-float-ref-int-obj.C: Add labels to + directives. + 2012-04-07 Thomas Koenig PR fortran/52893 diff --git a/gcc/testsuite/g++.dg/warn/Wstrict-aliasing-float-ref-int-obj.C b/gcc/testsuite/g++.dg/warn/Wstrict-aliasing-float-ref-int-obj.C index 103248da487..9027061c5b8 100644 --- a/gcc/testsuite/g++.dg/warn/Wstrict-aliasing-float-ref-int-obj.C +++ b/gcc/testsuite/g++.dg/warn/Wstrict-aliasing-float-ref-int-obj.C @@ -4,9 +4,9 @@ int foo() { int x; - float& q = reinterpret_cast (x); /* { dg-message "dereferencing type-punned" "" { target *-*-* } } */ - q = 1.0; /* { dg-warning "does break strict-aliasing" "" { xfail *-*-* } } */ + float& q = reinterpret_cast (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 } */ -- 2.30.2