aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Stump <mikestump@comcast.net>2010-03-24 03:04:16 +0000
committerMike Stump <mrs@gcc.gnu.org>2010-03-24 03:04:16 +0000
commit012cd3b6b52f81950a23953ef21e383d7bd29d06 (patch)
tree27362a6e0af836b2672b155dc02bd30f5c20844f
parent5c3bacee3806b48e0fb6b16492c1ef110e61a85c (diff)
downloadgcc-012cd3b6b52f81950a23953ef21e383d7bd29d06.zip
gcc-012cd3b6b52f81950a23953ef21e383d7bd29d06.tar.gz
gcc-012cd3b6b52f81950a23953ef21e383d7bd29d06.tar.bz2
* g++.dg/warn/Wstrict-aliasing-float-ref-int-obj.C: Enhance portability.
From-SVN: r157690
-rw-r--r--gcc/testsuite/ChangeLog4
-rw-r--r--gcc/testsuite/g++.dg/warn/Wstrict-aliasing-float-ref-int-obj.C4
2 files changed, 6 insertions, 2 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 8158d48..63432cf 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,7 @@
+2010-03-23 Mike Stump <mikestump@comcast.net>
+
+ * g++.dg/warn/Wstrict-aliasing-float-ref-int-obj.C: Enhance portability.
+
2010-03-23 Jason Merrill <jason@redhat.com>
* g++.dg/ext/altivec-17.C: Adjust error message.
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 8b82874..103248d 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 "initialized" "" { xfail *-*-* } } */
+ float& q = reinterpret_cast<float&> (x); /* { dg-message "dereferencing type-punned" "" { target *-*-* } } */
q = 1.0; /* { dg-warning "does break strict-aliasing" "" { xfail *-*-* } } */
return x;
}
-/* { dg-message "dereferencing type-punned" "" { target *-*-* } 7 } */
+/* { dg-message "initialized" "" { xfail *-*-* } 7 } */