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
2016-12-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
pr48134.c
blob
8dc5a6d0d412618d2a2ca0e5a4a9b43706fbc99f
1
/* { dg-do compile } */
2
/* { dg-options "-O2 -fstack-check=specific -fno-tree-dse -fno-tree-fre -fno-tree-loop-optimize -g" } */
3
4
struct
S
5
{
6
int
w
,
z
;
7
};
8
struct
T
9
{
10
struct
S s
;
11
};
12
13
int
i
;
14
15
static
inline
struct
S
16
bar
(
struct
S x
)
17
{
18
i
++;
19
return
x
;
20
}
21
22
int
23
foo
(
struct
T t
,
struct
S s
)
24
{
25
struct
S
*
c
= &
s
;
26
if
(
i
)
27
c
= &
t
.
s
;
28
t
.
s
.
w
=
3
;
29
s
=
bar
(*
c
);
30
return
t
.
s
.
w
;
31
}