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
/
torture
/
pr115492.c
blob
4ecc060768c0ab833c15b003ac845c8a5fe1718f
1
/* { dg-do run } */
2
3
int
a
=
2
,
b
=
0
, *
c
= &
a
, *
d
= &
a
,
e
=
0
;
4
[[
gnu
::
noipa
]]
5
void
f
(
int
) {}
6
[[
gnu
::
noipa
]]
7
int
h
(
int
*
k
) {
8
int
***
j
;
9
if
(
b
) {
10
*
j
= &
k
;
// Note the unintialized j is used here
11
// but since it is conditional and b is always zero, there should no
12
// effect otherwise.
13
***
j
;
14
}
15
f
(*
k
);
16
*
d
=
e
;
17
return
*
k
;
18
}
19
int
main
() {
if
(
h
(
c
))
__builtin_abort
(); }