15 lines
210 B
C
15 lines
210 B
C
|
/* { dg-do compile } */
|
||
|
/* { dg-options "-O2 -Wstrict-aliasing -fstrict-aliasing" } */
|
||
|
|
||
|
|
||
|
int foo ()
|
||
|
{
|
||
|
int x = 10;
|
||
|
int *p;
|
||
|
float *q;
|
||
|
|
||
|
q = (float*) &x; /* { dg-bogus "not referenced" } */
|
||
|
|
||
|
return x;
|
||
|
}
|