Disable the test I just added when testing C++03.
authorMarshall Clow <mclow.lists@gmail.com>
Wed, 25 Apr 2018 16:09:47 +0000 (16:09 +0000)
committerMarshall Clow <mclow.lists@gmail.com>
Wed, 25 Apr 2018 16:09:47 +0000 (16:09 +0000)
llvm-svn: 330838

libcxx/test/libcxx/atomics/atomics.flag/init_bool.pass.cpp

index 1a8b320..9dd68bd 100644 (file)
 #include <atomic>
 #include <cassert>
 
- // Ensure that static initialization happens; this is PR#37226
+#include "test_macros.h"
+
+#if TEST_STD_VER >= 11
+// Ensure that static initialization happens; this is PR#37226
 extern std::atomic_flag global;
 struct X { X() { global.test_and_set(); }};
 X x;
 std::atomic_flag global = ATOMIC_FLAG_INIT;
+#endif
 
 int main()
 {
+#if TEST_STD_VER >= 11
     assert(global.test_and_set() == 1);
+#endif
     {
         std::atomic_flag f(false);
         assert(f.test_and_set() == 0);