URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Subversion Repositories openrisc_me
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.dg/] [Wstrict-aliasing-float-ptr-int-obj.c] - Rev 298
Compare with Previous | Blame | View Log
/* { dg-do compile } */ /* { dg-options "-O -Wstrict-aliasing -fstrict-aliasing" } */ extern int flag; int foo() { int x; int y = 9; float* q; float* r; if (flag) { q = (float*) &x; /* { dg-message "initialized" "" { xfail *-*-* } } */ } else { q = (float*) &y; /* { dg-message "initialized" "" { xfail *-*-* } } */ } *q = 1.0; /* { dg-warning "does break strict-aliasing" "" { xfail *-*-* } } */ return x; }