blob: da6001fcd3c6b7dd898c2a240c1348b44eb387f7 [file] [log] [blame]
/* { dg-do run { target powerpc*-*-eabi* powerpc*-*-elf* powerpc*-*-linux* } } */
/* { dg-options "-O -mlong-double-128" } */
#include <stdlib.h>
/* SVR4 and EABI both specify that 'long double' is aligned to a 128-bit
boundary in structures. */
struct {
int x;
long double d;
} s;
int main(void)
{
if (sizeof (s) != 32)
abort ();
if ((char *)&s.d - (char *)&s != 16)
abort ();
exit (0);
}