From be8b04496302184c6e8f04d6179f9c3afc50aeb6 Mon Sep 17 00:00:00 2001 From: YamaArashi Date: Wed, 6 Jan 2016 01:47:28 -0800 Subject: initial commit --- gcc/testsuite/consistency.vlad/layout/a-of-s-longdouble.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 gcc/testsuite/consistency.vlad/layout/a-of-s-longdouble.c (limited to 'gcc/testsuite/consistency.vlad/layout/a-of-s-longdouble.c') diff --git a/gcc/testsuite/consistency.vlad/layout/a-of-s-longdouble.c b/gcc/testsuite/consistency.vlad/layout/a-of-s-longdouble.c new file mode 100755 index 0000000..bce9b46 --- /dev/null +++ b/gcc/testsuite/consistency.vlad/layout/a-of-s-longdouble.c @@ -0,0 +1,12 @@ +#include + +static struct sss{ + long double f; +} a[10]; + +int main (void) { + printf ("++++Array of struct with longdouble:\n"); + printf ("size=%d,align=%d,displ-a[5]=%d,align-a[5]=%d\n", + sizeof (a), __alignof__ (a), (char*)&a[5] - (char*)a, __alignof__ (a[5])); + return 0; +} -- cgit v1.2.3