summaryrefslogtreecommitdiffstats
path: root/libcxx/test
diff options
context:
space:
mode:
Diffstat (limited to 'libcxx/test')
-rw-r--r--libcxx/test/libcxx/thread/thread.mutex/thread_safety_lock_guard.pass.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/libcxx/test/libcxx/thread/thread.mutex/thread_safety_lock_guard.pass.cpp b/libcxx/test/libcxx/thread/thread.mutex/thread_safety_lock_guard.pass.cpp
index bd015feedb3..d9bd0481e2e 100644
--- a/libcxx/test/libcxx/thread/thread.mutex/thread_safety_lock_guard.pass.cpp
+++ b/libcxx/test/libcxx/thread/thread.mutex/thread_safety_lock_guard.pass.cpp
@@ -25,8 +25,10 @@ std::mutex m;
int foo __attribute__((guarded_by(m)));
static void scoped() {
+#if __cplusplus >= 201703L
std::scoped_lock<std::mutex> lock(m);
foo++;
+#endif
}
int main() {
OpenPOWER on IntegriCloud