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
parent 8144d290
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> 2012-04-07 Thomas Koenig <tkoenig@gcc.gnu.org>
PR fortran/52893 PR fortran/52893
......
...@@ -4,9 +4,9 @@ ...@@ -4,9 +4,9 @@
int foo() { int foo() {
int x; int x;
float& q = reinterpret_cast<float&> (x); /* { dg-message "dereferencing type-punned" "" { target *-*-* } } */ float& q = reinterpret_cast<float&> (x); /* { dg-message "dereferencing type-punned" "deref" { target *-*-* } } */
q = 1.0; /* { dg-warning "does break strict-aliasing" "" { xfail *-*-* } } */ q = 1.0; /* { dg-warning "does break strict-aliasing" "strict-aliasing" { xfail *-*-* } } */
return x; return x;
} }
/* { dg-message "initialized" "" { xfail *-*-* } 7 } */ /* { dg-message "initialized" "note" { 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