Commit 012cd3b6 by Mike Stump Committed by Mike Stump

* g++.dg/warn/Wstrict-aliasing-float-ref-int-obj.C: Enhance portability.

From-SVN: r157690
parent 5c3bacee
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.
......
......@@ -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 } */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment