# HG changeset patch # User Bruno Haible # Date 1243799525 -7200 # Node ID 129bb08ca0eefbde5e1f139018a13989c16b5283 # Parent 4744bae3ea84e1acacb9f0b661cd347423001f1e Test also the types 'long double' and 'int64_t'. diff --git a/ChangeLog b/ChangeLog --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2009-05-31 Bruno Haible + + * tests/test-alignof.c: Include . Check also 'long double' + and 'int64_t'. + * modules/alignof-tests (Dependencies): Add stdint. + Reported by Eric Blake. + 2009-05-31 Bruno Haible * lib/alignof.h (alignof_slot, alignof_type, alignof): Document diff --git a/modules/alignof-tests b/modules/alignof-tests --- a/modules/alignof-tests +++ b/modules/alignof-tests @@ -3,6 +3,7 @@ Depends-on: verify +stdint configure.ac: diff --git a/tests/test-alignof.c b/tests/test-alignof.c --- a/tests/test-alignof.c +++ b/tests/test-alignof.c @@ -21,9 +21,11 @@ #include #include +#include #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)