Dead
[official-gcc.git] / gomp-20050608-branch / gcc / testsuite / gcc.target / powerpc / ppc-ldstruct.c
blobda6001fcd3c6b7dd898c2a240c1348b44eb387f7
1 /* { dg-do run { target powerpc*-*-eabi* powerpc*-*-elf* powerpc*-*-linux* } } */
2 /* { dg-options "-O -mlong-double-128" } */
4 #include <stdlib.h>
6 /* SVR4 and EABI both specify that 'long double' is aligned to a 128-bit
7 boundary in structures. */
9 struct {
10 int x;
11 long double d;
12 } s;
14 int main(void)
16 if (sizeof (s) != 32)
17 abort ();
18 if ((char *)&s.d - (char *)&s != 16)
19 abort ();
20 exit (0);