repo.or.cz
/
gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Fortran: Fix PR 47485.
[gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
warn
/
Wstrict-aliasing-5.C
blob
84c493c435f9d9493d623f077bb2ca578ce967f6
1
/* { dg-do compile } */
2
/* { dg-options "-Wstrict-aliasing=2 -O2" } */
3
4
typedef unsigned uint32_t __attribute__((mode (__SI__)));
5
6
float foo ()
7
{
8
uint32_t MASK = 0x80000000;
9
return (float &) MASK; /* { dg-warning "strict-aliasing" } */
10
}
11