summaryrefslogtreecommitdiffstats
path: root/libcxx/test
diff options
context:
space:
mode:
Diffstat (limited to 'libcxx/test')
-rw-r--r--libcxx/test/support/archetypes.ipp4
1 files changed, 4 insertions, 0 deletions
diff --git a/libcxx/test/support/archetypes.ipp b/libcxx/test/support/archetypes.ipp
index 1f94ddcf0c8..a86e584af0a 100644
--- a/libcxx/test/support/archetypes.ipp
+++ b/libcxx/test/support/archetypes.ipp
@@ -9,7 +9,11 @@
#define DEFINE_CONSTEXPR constexpr
#endif
#ifndef DEFINE_ASSIGN_CONSTEXPR
+#if TEST_STD_VER >= 14
#define DEFINE_ASSIGN_CONSTEXPR DEFINE_CONSTEXPR
+#else
+#define DEFINE_ASSIGN_CONSTEXPR
+#endif
#endif
#ifndef DEFINE_CTOR
#define DEFINE_CTOR = default
OpenPOWER on IntegriCloud