diff options
Diffstat (limited to 'libcxx/test')
4 files changed, 17 insertions, 17 deletions
diff --git a/libcxx/test/libcxx/type_traits/convert_to_integral.pass.cpp b/libcxx/test/libcxx/type_traits/convert_to_integral.pass.cpp index 37060a0521f..34e43c44a1a 100644 --- a/libcxx/test/libcxx/type_traits/convert_to_integral.pass.cpp +++ b/libcxx/test/libcxx/type_traits/convert_to_integral.pass.cpp @@ -57,7 +57,7 @@ void check_enum_types() } -enum enum1 {}; +enum enum1 { zero = 0, one = 1 }; enum enum2 { value = std::numeric_limits<unsigned long>::max() }; diff --git a/libcxx/test/std/atomics/atomics.flag/atomic_flag_clear.pass.cpp b/libcxx/test/std/atomics/atomics.flag/atomic_flag_clear.pass.cpp index 64093d639e4..8a60f8196da 100644 --- a/libcxx/test/std/atomics/atomics.flag/atomic_flag_clear.pass.cpp +++ b/libcxx/test/std/atomics/atomics.flag/atomic_flag_clear.pass.cpp @@ -22,13 +22,13 @@ int main() { { - std::atomic_flag f; + std::atomic_flag f = ATOMIC_FLAG_INIT; f.test_and_set(); atomic_flag_clear(&f); assert(f.test_and_set() == 0); } { - volatile std::atomic_flag f; + volatile std::atomic_flag f = ATOMIC_FLAG_INIT; f.test_and_set(); atomic_flag_clear(&f); assert(f.test_and_set() == 0); diff --git a/libcxx/test/std/atomics/atomics.flag/atomic_flag_clear_explicit.pass.cpp b/libcxx/test/std/atomics/atomics.flag/atomic_flag_clear_explicit.pass.cpp index e1a9349c939..92e57ecc03f 100644 --- a/libcxx/test/std/atomics/atomics.flag/atomic_flag_clear_explicit.pass.cpp +++ b/libcxx/test/std/atomics/atomics.flag/atomic_flag_clear_explicit.pass.cpp @@ -22,37 +22,37 @@ int main() { { - std::atomic_flag f; + std::atomic_flag f = ATOMIC_FLAG_INIT; f.test_and_set(); atomic_flag_clear_explicit(&f, std::memory_order_relaxed); assert(f.test_and_set() == 0); } { - std::atomic_flag f; + std::atomic_flag f = ATOMIC_FLAG_INIT; f.test_and_set(); atomic_flag_clear_explicit(&f, std::memory_order_release); assert(f.test_and_set() == 0); } { - std::atomic_flag f; + std::atomic_flag f = ATOMIC_FLAG_INIT; f.test_and_set(); atomic_flag_clear_explicit(&f, std::memory_order_seq_cst); assert(f.test_and_set() == 0); } { - volatile std::atomic_flag f; + volatile std::atomic_flag f = ATOMIC_FLAG_INIT; f.test_and_set(); atomic_flag_clear_explicit(&f, std::memory_order_relaxed); assert(f.test_and_set() == 0); } { - volatile std::atomic_flag f; + volatile std::atomic_flag f = ATOMIC_FLAG_INIT; f.test_and_set(); atomic_flag_clear_explicit(&f, std::memory_order_release); assert(f.test_and_set() == 0); } { - volatile std::atomic_flag f; + volatile std::atomic_flag f = ATOMIC_FLAG_INIT; f.test_and_set(); atomic_flag_clear_explicit(&f, std::memory_order_seq_cst); assert(f.test_and_set() == 0); diff --git a/libcxx/test/std/atomics/atomics.flag/clear.pass.cpp b/libcxx/test/std/atomics/atomics.flag/clear.pass.cpp index 65051af790d..7c9362680bb 100644 --- a/libcxx/test/std/atomics/atomics.flag/clear.pass.cpp +++ b/libcxx/test/std/atomics/atomics.flag/clear.pass.cpp @@ -22,49 +22,49 @@ int main() { { - std::atomic_flag f; + std::atomic_flag f = ATOMIC_FLAG_INIT; f.test_and_set(); f.clear(); assert(f.test_and_set() == 0); } { - std::atomic_flag f; + std::atomic_flag f = ATOMIC_FLAG_INIT; f.test_and_set(); f.clear(std::memory_order_relaxed); assert(f.test_and_set() == 0); } { - std::atomic_flag f; + std::atomic_flag f = ATOMIC_FLAG_INIT; f.test_and_set(); f.clear(std::memory_order_release); assert(f.test_and_set() == 0); } { - std::atomic_flag f; + std::atomic_flag f = ATOMIC_FLAG_INIT; f.test_and_set(); f.clear(std::memory_order_seq_cst); assert(f.test_and_set() == 0); } { - volatile std::atomic_flag f; + volatile std::atomic_flag f = ATOMIC_FLAG_INIT; f.test_and_set(); f.clear(); assert(f.test_and_set() == 0); } { - volatile std::atomic_flag f; + volatile std::atomic_flag f = ATOMIC_FLAG_INIT; f.test_and_set(); f.clear(std::memory_order_relaxed); assert(f.test_and_set() == 0); } { - volatile std::atomic_flag f; + volatile std::atomic_flag f = ATOMIC_FLAG_INIT; f.test_and_set(); f.clear(std::memory_order_release); assert(f.test_and_set() == 0); } { - volatile std::atomic_flag f; + volatile std::atomic_flag f = ATOMIC_FLAG_INIT; f.test_and_set(); f.clear(std::memory_order_seq_cst); assert(f.test_and_set() == 0); |