Mercurial > hg > octave-lojdl > gnulib-hg
changeset 11601:129bb08ca0ee
Test also the types 'long double' and 'int64_t'.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Sun, 31 May 2009 21:52:05 +0200 |
parents | 4744bae3ea84 |
children | 41b768a8fa98 |
files | ChangeLog modules/alignof-tests tests/test-alignof.c |
diffstat | 3 files changed, 12 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2009-05-31 Bruno Haible <bruno@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. + 2009-05-31 Bruno Haible <bruno@clisp.org> * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
--- a/modules/alignof-tests +++ b/modules/alignof-tests @@ -3,6 +3,7 @@ Depends-on: verify +stdint configure.ac:
--- a/tests/test-alignof.c +++ b/tests/test-alignof.c @@ -21,9 +21,11 @@ #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,6 +43,8 @@ CHECK (long) CHECK (float) CHECK (double) +CHECK (long double) +CHECK (int64_t) CHECK (struct1) CHECK (struct2) CHECK (struct3)