FSF GCC merge 02/23/03
[official-gcc.git] / gcc / testsuite / gcc.c-torture / execute / zerolen-2.c
blob446e5828362dfdd613a9fc10c0b3f680aa035316
1 extern void abort(void);
3 typedef int word __attribute__((mode(word)));
5 struct foo
7 word x;
8 word y[0];
9 };
11 int main()
13 if (sizeof(word) != sizeof(struct foo))
14 abort();
15 if (__alignof__(word) != __alignof__(struct foo))
16 abort();
17 return 0;