FSF GCC merge 02/23/03
[official-gcc.git] / gcc / testsuite / consistency.vlad / layout / a-long.c
blob00f82ec0b3ab93218e263bf0b0219ac570c927df
1 #include <stdio.h>
3 static long a [10];
4 static long e [0]; /* GCC only */
6 int main (void) {
7 printf ("+++Array long:\n");
8 printf ("size=%d,align=%d,5th-elem-offset=%d,5th-elem-align=%d\n",
9 sizeof (a), __alignof__ (a),
10 (char *) &a[5] - (char *) a, __alignof__ (a[5]));
11 printf ("size=%d,align=%d,5th-elem-offset=%d,5th-elem-align=%d\n",
12 sizeof (e), __alignof__ (e),
13 (char *) &e[5] - (char *) a, __alignof__ (e[5]));
14 return 0;