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
This commit is contained in:
Manuel López-Ibáñez 2012-04-07 22:09:42 +00:00
parent 8144d290d8
commit 0058db4366
2 changed files with 8 additions and 3 deletions

View File

@ -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

View File

@ -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 } */