diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2007-04-13 07:52:57 +0000 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2007-04-13 07:52:57 +0000 |
commit | 4ccb4472188da41253029abe6b70e293dc17aeac (patch) | |
tree | d100f1dd146be2338964f9aaaad057aee6aba63e /tests/semantics.at | |
parent | ea9f58330b39334a6fc7422a99f19fb54d36d080 (diff) | |
download | autoconf-4ccb4472188da41253029abe6b70e293dc17aeac.tar.gz |
* NEWS: Document recent changes to AC_CHECK_ALIGNOF, AC_CHECK_SIZEOF,
AC_CHECK_TYPE, AC_CHECK_TYPES.
* doc/autoconf.texi (Generic types): C types must be type-names
(the C terminology), not type-ids (the C++ term). C++ types
must not be anonymous.
* lib/autoconf/types.m4 (_AC_CHECK_TYPE_NEW): Remove special case
for C++; this drops support for anonymous struct and union types,
which were problematic anyway.
* tests/semantics.at (AC_CHECK_HEADERS_NEW): Adjust test to work even
for C++.
Diffstat (limited to 'tests/semantics.at')
-rw-r--r-- | tests/semantics.at | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/semantics.at b/tests/semantics.at index 0a7afdd9..2fa7cde4 100644 --- a/tests/semantics.at +++ b/tests/semantics.at @@ -302,13 +302,13 @@ AC_CHECK_SIZEOF(charcharchar) # ---------------------- AT_CHECK_MACRO_CROSS([AC_CHECK_SIZEOF struct], [[AC_C_CONST -AC_CHECK_SIZEOF([struct { char c; int x; }]) -AC_CHECK_SIZEOF([const struct { const char *p; int x; }]) +AC_CHECK_SIZEOF([struct x], [], [struct x { char c; int x; };]) +AC_CHECK_SIZEOF([const struct x], [], [struct x { const char *p; int x; };]) AC_CHECK_SIZEOF([struct nosuchstruct]) ]], -[AT_CHECK([[grep "#define SIZEOF_STRUCT___CHAR_C__INT_X___ [^0]" config.h]], +[AT_CHECK([[grep "#define SIZEOF_STRUCT_X [^0]" config.h]], 0, ignore) -AT_CHECK([[grep "#define SIZEOF_CONST_STRUCT___CONST_CHAR_PP__INT_X___ [^0]" config.h]], +AT_CHECK([[grep "#define SIZEOF_CONST_STRUCT_X [^0]" config.h]], 0, ignore) AT_CHECK([[grep "#define SIZEOF_STRUCT_NOSUCHSTRUCT 0" config.h]], 0, ignore) |