From cdc6e2c50f96119bdc4c1205ff5901ca82ec8357 Mon Sep 17 00:00:00 2001 From: camthesaxman Date: Wed, 29 Jan 2020 18:17:43 -0600 Subject: add old compiler with ARM support --- gcc_arm/testsuite/consistency.vlad/layout/a-double.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 gcc_arm/testsuite/consistency.vlad/layout/a-double.c (limited to 'gcc_arm/testsuite/consistency.vlad/layout/a-double.c') diff --git a/gcc_arm/testsuite/consistency.vlad/layout/a-double.c b/gcc_arm/testsuite/consistency.vlad/layout/a-double.c new file mode 100755 index 0000000..0e5aa3c --- /dev/null +++ b/gcc_arm/testsuite/consistency.vlad/layout/a-double.c @@ -0,0 +1,15 @@ +#include + +static double a [10]; +static double e [0]; /* GCC only */ + +int main (void) { + printf ("+++Array double:\n"); + printf ("size=%d,align=%d,5th-elem-offset=%d,5th-elem-align=%d\n", + sizeof (a), __alignof__ (a), + (char *) &a[5] - (char *) a, __alignof__ (a[5])); + printf ("size=%d,align=%d,5th-elem-offset=%d,5th-elem-align=%d\n", + sizeof (e), __alignof__ (e), + (char *) &e[5] - (char *) a, __alignof__ (e[5])); + return 0; +} -- cgit v1.2.3