//===----------------------------------------------------------------------===// // // The LLVM Compiler Infrastructure // // This file is dual licensed under the MIT and the University of Illinois Open // Source Licenses. See LICENSE.TXT for details. // //===----------------------------------------------------------------------===// // // UNSUPPORTED: libcpp-has-no-threads // XFAIL: c++98, c++03 // // #define ATOMIC_VAR_INIT(value) #include #include #include int main() { std::atomic v = ATOMIC_VAR_INIT(5); assert(v == 5); }