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
/
pr79043.c
blob
b7fcc8260dc30488c169f9b3c02c0b7fc01ceb3c
1
/* PR ipa/78791 */
2
3
int
val
;
4
5
int
*
ptr
= &
val
;
6
float
*
ptr2
= &
val
;
7
8
static
9
__attribute__
((
always_inline
,
optimize
(
"-fno-strict-aliasing"
)))
10
typepun
()
11
{
12
*
ptr2
=
0
;
13
}
14
15
main
()
16
{
17
*
ptr
=
1
;
18
typepun
();
19
if
(*
ptr
)
20
__builtin_abort
();
21
}