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
2010-05-02 Richard Guenther <rguenther@suse.de>
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
gcc.dg
/
torture
/
pr42878-1.c
1
/* { dg-do compile } */
2
/* { dg-options "-fcompare-debug" } */
3
4
struct S {
5
int i;
6
};
7
8
extern struct S *e1(void);
9
extern int e2(int i);
10
11
static inline void f1()
12
{
13
int i;
14
struct S *s;
15
for (i = 0; i < 10; i++)
16
s = e1();
17
e2(s->i);
18
}
19
20
static inline void f2(int i)
21
{
22
int j = j;
23
j = e2(i);
24
}
25
26
void foo(int i)
27
{
28
f1();
29
f2(i);
30
}