OSDN Git Service

* gcc.c-torture/execute/20060420-1.c: Fix alignment logic.
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.c-torture / execute / 990525-1.c
1 struct blah {
2     int m1, m2;
3 };
4
5 void die(struct blah arg)
6 {
7     int i ;
8     struct blah buf[1];
9
10     for (i = 0; i < 1 ; buf[i++] = arg)
11         ;
12     if (buf[0].m1 != 1) {
13         abort ();
14     }
15 }
16
17 int main()
18 {
19     struct blah s = { 1, 2 };
20
21     die(s);
22     exit (0);
23 }