diff options
author | Manuel López-Ibáñez <manu@gcc.gnu.org> | 2012-04-07 22:09:42 +0000 |
---|---|---|
committer | Manuel López-Ibáñez <manu@gcc.gnu.org> | 2012-04-07 22:09:42 +0000 |
commit | 0058db43668afb4e1d11e46df03b6c5d62fa5462 (patch) | |
tree | 467eb496b5243ea3bf73ba2b0a0b5963889edb9b | |
parent | 8144d290d8ce582bbd50601b74dcfa811bae5c1c (diff) | |
download | gcc-0058db43668afb4e1d11e46df03b6c5d62fa5462.zip gcc-0058db43668afb4e1d11e46df03b6c5d62fa5462.tar.gz gcc-0058db43668afb4e1d11e46df03b6c5d62fa5462.tar.bz2 |
Wstrict-aliasing-float-ref-int-obj.C: Add labels to directives.
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.
From-SVN: r186216
-rw-r--r-- | gcc/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/testsuite/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 7743667..abe15ae 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +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. + 2012-04-07 Thomas Koenig <tkoenig@gcc.gnu.org> 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 103248d..9027061 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<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 } */ |