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
PR middle-end/77357 - strlen of constant strings not folded
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.c-torture
/
execute
/
alias-1.c
blob
666e96f968ac677aa27fb8c63ee30a724025263d
1
int
val
;
2
3
int
*
ptr
= &
val
;
4
float
*
ptr2
= &
val
;
5
6
__attribute__
((
optimize
(
"-fno-strict-aliasing"
)))
7
typepun
()
8
{
9
*
ptr2
=
0
;
10
}
11
12
main
()
13
{
14
*
ptr
=
1
;
15
typepun
();
16
if
(*
ptr
)
17
__builtin_abort
();
18
}
19