test-stdbool: skip test that fails with Solaris CC
authorEric Blake <eblake@redhat.com>
Fri, 16 Apr 2010 23:04:58 +0000 (17:04 -0600)
committerEric Blake <eblake@redhat.com>
Fri, 16 Apr 2010 23:11:27 +0000 (17:11 -0600)
commitfef5e6b4fc847bb1c01a20314effae7cb7828f38
tree3fe170cbd5d3898a28c86b1e2139137e9c9079ec
parente37c1207ef427c4af2b5d16050e0e548e6384b4a
test-stdbool: skip test that fails with Solaris CC

Solaris 9 CC has a bug; it allows (int)0.0 and (bool)0 in constant
expressions, but not (bool)0.0.  Our replacement stdbool cannot
provide that guarantee of C99 for this particular compiler, but
since use of that feature causes compilation failure rather than
silent mis-compilation, we just skip the test.

* tests/test-stdbool.c (f): Skip test that causes compilation
error under buggy C++ compiler.
* lib/stdbool.in.h: Document the limitation.
* doc/posix-headers/stdbool.texi (stdbool.h): Likewise.

Signed-off-by: Eric Blake <eblake@redhat.com>
ChangeLog
doc/posix-headers/stdbool.texi
lib/stdbool.in.h
tests/test-stdbool.c