OSDN Git Service

* gcc.c-torture/execute/20040208-2.c: Move ...
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.c-torture / execute / zerolen-2.c
1 extern void abort(void);
2
3 typedef int word __attribute__((mode(word)));
4
5 struct foo
6 {
7   word x;
8   word y[0];
9 };
10
11 int main()
12 {
13   if (sizeof(word) != sizeof(struct foo))
14     abort();
15   if (__alignof__(word) != __alignof__(struct foo))
16     abort();
17   return 0;
18 }