* tests/test-stdbool-c++.cc (s): Choose field names that are not type
names.
2022-09-10 Bruno Haible <bruno@clisp.org>
+ stdbool C++ tests: Fix compilation error with MSVC14 (regr. from today).
+ * tests/test-stdbool-c++.cc (s): Choose field names that are not type
+ names.
+
Reorganize C++ tests for stdbool and stdbool-c99.
* tests/test-stdbool-c++.cc: Don't include <stdbool.h> if TEST_STDBOOL_H
is not defined. Add a couple of simple tests, from test-stdbool.c.
"error: true is not 1"
#endif
-struct s { bool s: 1; bool t; } s;
+struct s { bool u: 1; bool v; } s;
char a[true == 1 ? 1 : -1];
char b[false == 0 ? 1 : -1];