projects
/
libfirm
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Added C wrapper to Daniel's coalescing JAVA framework
[libfirm]
/
ir
/
be
/
test
/
structtest.c
1
#include <stdio.h>
2
3
struct A {
4
int x;
5
int y;
6
};
7
8
int main(int argc, char *argv[])
9
{
10
struct A a;
11
12
printf("structtest.c\n");
13
14
printf("sizeof struct(A) %ld\n", sizeof(struct A));
15
printf("sizeof a %ld\n", sizeof(a));
16
17
a.x = 3;
18
a.y = 4;
19
20
printf("a.x = %d (should be 3)\n", a.x);
21
printf("a.y = %d (should be 4)\n", a.y);
22
23
return 0;
24
}