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-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c7cf9c5005c207ccc24581f0bddb48a5864d443c;p=pspp Test also the types 'long double' and 'int64_t'. --- diff --git a/ChangeLog b/ChangeLog index 54172a3942..78667e63d6 100644 --- 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 index 68ed4fd196..be4cb942be 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 73694aa5e2..93d5dedc21 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)