repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Merged r158907 through r159238 into branch.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
warn
/
Wstrict-aliasing-5.C
blob
a049251186585a1d86dd1084abc023ce80dbf9d9
1
/* { dg-do compile } */
2
/* { dg-options "-Wstrict-aliasing=2 -O2" } */
3
4
float foo ()
5
{
6
unsigned int MASK = 0x80000000;
7
return (float &) MASK; /* { dg-warning "strict-aliasing" } */
8
}
9