Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/g++.dg/ext/align1.C @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
// Test that __attribute__ ((aligned)) is preserved. // The alignment used to be 64 but Cygwin does not // support an alignment greater than 16 and COFF // not support an alignment greater than 4. extern "C" int printf (const char *, ...); typedef float at[4][4] __attribute__ ((aligned)); float dummy[4][4][15]; static volatile at a1[15]; float f1 __attribute__ ((aligned)); int main (void) { printf ("%d %d\n", __alignof (a1), __alignof (f1)); return (__alignof (a1) < __alignof (f1)); }