summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libcxx/test/support/archetypes.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/libcxx/test/support/archetypes.hpp b/libcxx/test/support/archetypes.hpp
index 2538c2590d8..da6212301ea 100644
--- a/libcxx/test/support/archetypes.hpp
+++ b/libcxx/test/support/archetypes.hpp
@@ -147,7 +147,7 @@ struct ValueBase {
protected:
constexpr static int check_value(int const& val) {
#if TEST_STD_VER < 14
- return val == -1 || val == 999 ? TEST_THROW(42) : val;
+ return val == -1 || val == 999 ? (TEST_THROW(42), 0) : val;
#else
assert(val != -1); assert(val != 999);
return val;
@@ -155,7 +155,7 @@ protected:
}
constexpr static int check_value(int& val, int val_cp = 0) {
#if TEST_STD_VER < 14
- return val_cp = val, val = -1, (val_cp == -1 || val_cp == 999 ? TEST_THROW(42) : val_cp);
+ return val_cp = val, val = -1, (val_cp == -1 || val_cp == 999 ? (TEST_THROW(42), 0) : val_cp);
#else
assert(val != -1); assert(val != 999);
val_cp = val;
OpenPOWER on IntegriCloud