Test also the types 'long double' and 'int64_t'.
authorBruno Haible <bruno@clisp.org>
Sun, 31 May 2009 19:52:05 +0000 (21:52 +0200)
committerBruno Haible <bruno@clisp.org>
Wed, 3 Jun 2009 08:33:59 +0000 (10:33 +0200)
ChangeLog
modules/alignof-tests
tests/test-alignof.c

index 54172a3..78667e6 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
 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
        restriction due to compiler bugs.
        Reported by Eric Blake.
index 68ed4fd..be4cb94 100644 (file)
@@ -3,6 +3,7 @@ tests/test-alignof.c
 
 Depends-on:
 verify
+stdint
 
 configure.ac:
 
index 73694aa..93d5ded 100644 (file)
 #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 (int)
 CHECK (long)
 CHECK (float)
 CHECK (double)
+CHECK (long double)
+CHECK (int64_t)
 CHECK (struct1)
 CHECK (struct2)
 CHECK (struct3)