OSDN Git Service

* gcc.c-torture/execute/20041218-2.c: Add __attribute__((packed)).
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.c-torture / execute / 20041218-2.c
1 extern void abort (void);
2
3 int test(int n)
4 {
5   struct s { char b[n]; } __attribute__((packed));
6   n++;
7   return sizeof(struct s);
8 }
9
10 int main()
11 {
12   if (test(123) != 123)
13     abort ();
14   return 0;
15 }