From: Manuel López-Ibáñez Date: Sat, 7 Apr 2012 22:09:42 +0000 (+0000) Subject: Wstrict-aliasing-float-ref-int-obj.C: Add labels to directives. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0058db43668afb4e1d11e46df03b6c5d62fa5462;p=gcc.git Wstrict-aliasing-float-ref-int-obj.C: Add labels to directives. 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 --- 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 } */