1 //===----------------------------------------------------------------------===// 2 // 3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 4 // See https://llvm.org/LICENSE.txt for license information. 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6 // 7 //===----------------------------------------------------------------------===// 8 9 // UNSUPPORTED: c++03, c++11, c++14, c++17 10 11 #include <atomic> 12 13 #include "test_macros.h" 14 main(int,char **)15int main(int, char**) 16 { 17 static_assert(std::memory_order_relaxed == std::memory_order::relaxed); 18 static_assert(std::memory_order_consume == std::memory_order::consume); 19 static_assert(std::memory_order_acquire == std::memory_order::acquire); 20 static_assert(std::memory_order_release == std::memory_order::release); 21 static_assert(std::memory_order_acq_rel == std::memory_order::acq_rel); 22 static_assert(std::memory_order_seq_cst == std::memory_order::seq_cst); 23 24 return 0; 25 } 26