From: Bruno Haible Date: Sun, 31 May 2009 19:52:05 +0000 (+0200) Subject: Test also the types 'long double' and 'int64_t'. X-Git-Tag: v0.1~5886 X-Git-Url: http://erislabs.org.uk/gitweb/?a=commitdiff_plain;h=c7cf9c5005c207ccc24581f0bddb48a5864d443c;p=gnulib.git Test also the types 'long double' and 'int64_t'. --- diff --git a/ChangeLog b/ChangeLog index 54172a394..78667e63d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,12 @@ 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 restriction due to compiler bugs. Reported by Eric Blake. diff --git a/modules/alignof-tests b/modules/alignof-tests index 68ed4fd19..be4cb942b 100644 --- a/modules/alignof-tests +++ b/modules/alignof-tests @@ -3,6 +3,7 @@ tests/test-alignof.c Depends-on: verify +stdint configure.ac: diff --git a/tests/test-alignof.c b/tests/test-alignof.c index 73694aa5e..93d5dedc2 100644 --- 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 (int) CHECK (long) CHECK (float) CHECK (double) +CHECK (long double) +CHECK (int64_t) CHECK (struct1) CHECK (struct2) CHECK (struct3)