Detect _Bool bug in HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003].

This commit is contained in:
Paul Eggert 2004-06-01 05:33:27 +00:00
parent d3ac02e267
commit 89d95a47eb
2 changed files with 13 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2004-05-31 Paul Eggert <eggert@cs.ucla.edu>
* lib/autoconf/headers.m4 (HAVE_STDBOOL_H): Detect _Bool bug
in HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. Problem reported
by Jim Meyering.
2004-05-26 Paul Eggert <eggert@cs.ucla.edu>
* doc/autoconf.texi (Limitations of Builtins): Mention that ! COMMAND

View File

@ -530,8 +530,14 @@ AC_DEFUN([AC_HEADER_STDBOOL],
char g[true];
char h[sizeof (_Bool)];
char i[sizeof s.t];
enum { j = false, k = true, l = false * true, m = true * 256 };
_Bool n[m];
char o[sizeof n == m * sizeof n[0] ? 1 : -1];
]],
[[ return !a + !b + !c + !d + !e + !f + !g + !h + !i; ]])],
[[
return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !j + !k + !l
+ !m + !n + !o);
]])],
[ac_cv_header_stdbool_h=yes],
[ac_cv_header_stdbool_h=no])])
AC_CHECK_TYPES([_Bool])