projects
/
libfirm
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
fehler83
[libfirm]
/
ir
/
be
/
test
/
llvm
/
2003-05-22-LocalTypeTest.c
1
#include <stdio.h>
2
3
struct sometimes {
4
short offset; short bit;
5
short live_length; short calls_crossed;
6
} Y;
7
8
int main() {
9
int X;
10
{
11
struct sometimes { int X, Y; } S;
12
S.X = 1;
13
X = S.X;
14
}
15
{
16
struct sometimes { char X; } S;
17
S.X = -1;
18
X += S.X;
19
}
20
X += Y.offset;
21
22
printf("Result is %d\n", X);
23
return X;
24
}