summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2022-09-11 00:48:56 +0200
committerBruno Haible <bruno@clisp.org>2022-09-11 00:48:56 +0200
commit60e9cc86d91d23465bb79751c772ec87d05bae13 (patch)
treecf9204413ab362da80b82a0715e3585e39374a32 /tests
parent8b21d104b20dfcbb5ddb8ca69fa64776487ceec6 (diff)
downloadgnulib-60e9cc86d91d23465bb79751c772ec87d05bae13.tar.gz
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.
Diffstat (limited to 'tests')
-rw-r--r--tests/test-stdbool-c++.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test-stdbool-c++.cc b/tests/test-stdbool-c++.cc
index 8e208dfe23..98358f1ef8 100644
--- a/tests/test-stdbool-c++.cc
+++ b/tests/test-stdbool-c++.cc
@@ -33,7 +33,7 @@
"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];