Eric Blake wrote: > I noticed you just pushed test-alignof.c. Should this file also check > 'long double', and (where available) 'long long int', particularly since > these types often have smaller alignment than size?
Good point here as well. I'm adding them: 2009-05-31 Bruno Haible <br...@clisp.org> * tests/test-alignof.c: Include <stdint.h>. Check also 'long double' and 'int64_t'. * modules/alignof-tests (Dependencies): Add stdint. Reported by Eric Blake. *** tests/test-alignof.c.orig 2009-05-31 21:49:29.000000000 +0200 --- tests/test-alignof.c 2009-05-31 21:49:15.000000000 +0200 *************** *** 21,29 **** --- 21,31 ---- #include <alignof.h> #include <stddef.h> + #include <stdint.h> #include "verify.h" + typedef long double longdouble; typedef struct { char a[1]; } struct1; typedef struct { char a[2]; } struct2; typedef struct { char a[3]; } struct3; *************** *** 41,46 **** --- 43,50 ---- CHECK (long) CHECK (float) CHECK (double) + CHECK (long double) + CHECK (int64_t) CHECK (struct1) CHECK (struct2) CHECK (struct3) *** modules/alignof-tests.orig 2009-05-31 21:49:29.000000000 +0200 --- modules/alignof-tests 2009-05-31 21:48:19.000000000 +0200 *************** *** 3,8 **** --- 3,9 ---- Depends-on: verify + stdint configure.ac: