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 54172a3942a9dbb6df2431bf1c016cdf3005b8cc..78667e63d6e849eb445547831f47b1049afed282 100644 (file)
--- 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
index 68ed4fd1968dda6e6d2c2d0997277b128a125e1a..be4cb942bee19e4e85d4f25c3d91a8fb2f765efc 100644 (file)
@@ -3,6 +3,7 @@ tests/test-alignof.c
 
 Depends-on:
 verify
+stdint
 
 configure.ac:
 
index 73694aa5e257a9a8f38031f8571235d2467970e5..93d5dedc21b58aa7fcf37b3979053163524260e4 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)