demonstartes a bug in the tarval module
[libfirm] / ir / be / test / fehler070.c
1 typedef struct s {
2         char a;
3         char b;
4 } s;
5
6 s a[129];
7 s* b = a;
8
9 void f(unsigned char i)
10 {
11         printf("%d %d (should be 23 42)\n", b[i].a, b[i].b);
12 }
13
14
15 int main(void)
16 {
17         b[128].a = 23;
18         b[128].b = 42;
19         f(128);
20 }