Test also the types 'long double' and 'int64_t'.
[pspp] / tests / test-alignof.c
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)