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
/
pr77648-2.c
blob
1c3734d34d8b3166d9c71fda2674df09f929cb74
1
/* { dg-do run } */
2
3
struct
S
{
int
*
p
;
int
*
q
; };
4
5
int
**
__attribute__
((
noinline
,
noclone
,
const
))
foo
(
struct
S
*
s
)
6
{
7
return
&
s
->
q
;
8
}
9
10
int
main
()
11
{
12
struct
S s
;
13
int
i
=
1
,
j
=
2
;
14
int
**
x
;
15
s
.
p
= &
i
;
16
s
.
q
= &
j
;
17
x
=
foo
(&
s
);
18
**
x
=
7
;
19
if
(
j
!=
7
)
20
__builtin_abort
();
21
return
0
;
22
}