+2000-11-29 Akim Demaille <akim@epita.fr>
+
+ sizeof (struct {char a,b; }) is not required to be 2.
+ Reported by Johan Danielsson.
+
+ * tests/semantics.at (AC_CHECK_SIZEOF): Define charchar as an
+ array of 2 chars.
+ Suggested by Alexandre.
+
2000-11-29 Akim Demaille <akim@epita.fr>
Provide a means to display banners in the test suite.
(AT_INIT): After having checked whether the test failed, break out
of the loop if requested (-e).
-
+
2000-11-23 Akim Demaille <akim@epita.fr>
* tests/atgeneral.m4 (AT_SETUP): Don't build at-check-line, that's
AT_CHECK's job.
Remove the code depending upon `at_skip_mode': it's unused.
-
+
2000-11-23 Akim Demaille <akim@epita.fr>
* tests/atconfig.in: Remove the `snippet' marks, there are no
# AC_CHECK_SIZEOF
# ---------------
AT_CHECK_MACRO([AC_CHECK_SIZEOF],
-[AC_CHECK_SIZEOF(char)
+[[AC_CHECK_SIZEOF(char)
AC_CHECK_SIZEOF(charchar,,
-[#include <stdio.h>
-typedef struct
-{
- char a;
- char b;
-} charchar;])
+[[#include <stdio.h>
+typedef char charchar[2];]])
AC_CHECK_SIZEOF(charcharchar)
# Exercize the code used when cross-compiling
cross_compiling=yes
AC_CHECK_SIZEOF(unsigned char)
AC_CHECK_SIZEOF(ucharchar,,
-[#include <stdio.h>
-typedef struct
-{
- unsigned char a;
- unsigned char b;
-} ucharchar;])
-AC_CHECK_SIZEOF(ucharcharchar)],
+[[#include <stdio.h>
+typedef unsigned char ucharchar[2];]])
+AC_CHECK_SIZEOF(ucharcharchar)]],
[AT_CHECK_DEFINES(
[#define SIZEOF_CHAR 1
#define SIZEOF_CHARCHAR 2