OSDN Git Service

* g++.dg/warn/Wstrict-aliasing-float-ref-int-obj.C: Enhance portability.
authormrs <mrs@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 24 Mar 2010 03:04:16 +0000 (03:04 +0000)
committermrs <mrs@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 24 Mar 2010 03:04:16 +0000 (03:04 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@157690 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/warn/Wstrict-aliasing-float-ref-int-obj.C

index 8158d48..63432cf 100644 (file)
@@ -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.
index 8b82874..103248d 100644 (file)
@@ -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 } */