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
libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
Wstrict-aliasing-struct-with-char-member.c
blob
0da9a163781fda99510757e78b0b95150b9826af
1
/* { dg-do compile } */
2
/* { dg-options "-O2 -Wall" } */
3
4
struct
a
{
5
int
i
;
6
char
c
;
7
};
8
struct
b
{
9
float
f
;
10
float
g
;
11
};
12
int
main
(
void
)
13
{
14
static struct
b b
;
15
return
((
struct
a
*)&
b
)->
i
;
/* { dg-warning "will break strict-aliasing" } */
16
}