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:
parent
8144d290d8
commit
0058db4366
@ -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
|
||||
|
@ -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 } */
|
||||
|
Loading…
Reference in New Issue
Block a user