diff options
Diffstat (limited to 'test/std/thread/thread.mutex/thread.once/thread.once.onceflag/default.pass.cpp')
| -rw-r--r-- | test/std/thread/thread.mutex/thread.once/thread.once.onceflag/default.pass.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/std/thread/thread.mutex/thread.once/thread.once.onceflag/default.pass.cpp b/test/std/thread/thread.mutex/thread.once/thread.once.onceflag/default.pass.cpp index 6995f0648335..21011ed17cd9 100644 --- a/test/std/thread/thread.mutex/thread.once/thread.once.onceflag/default.pass.cpp +++ b/test/std/thread/thread.mutex/thread.once/thread.once.onceflag/default.pass.cpp @@ -14,13 +14,14 @@ // constexpr once_flag() noexcept; #include <mutex> +#include "test_macros.h" int main() { { std::once_flag f; } -#ifndef _LIBCPP_HAS_NO_CONSTEXPR +#if TEST_STD_VER >= 11 { constexpr std::once_flag f; } |
