projects
/
libfirm
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
indentation fixed
[libfirm]
/
ir
/
be
/
test
/
sparam.c
1
struct x {
2
int a;
3
int b;
4
int c;
5
int d;
6
};
7
8
struct y {
9
int a;
10
int b;
11
int c;
12
int d[20];
13
};
14
15
int main()
16
{
17
struct x A;
18
struct y B;
19
20
A.a = 3;
21
A.b = 4;
22
A.c = 5;
23
A.d = 6;
24
25
B.a = 4;
26
B.b = 5;
27
B.c = 6;
28
29
printf("%d\n", t(A));
30
printf("%d\n", z(B));
31
32
return 0;
33
}
34
35
int t(struct x x)
36
{
37
return x.b;
38
}
39
40
int z(struct y x)
41
{
42
return x.c;
43
}