OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
PR tree-optimization/50596
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
gcc.dg
/
pr48134.c
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
}