//===----------------------------------------------------------------------===// // // 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. // //===----------------------------------------------------------------------===// // // #define ATOMIC_VAR_INIT(value) #include #include #include int main() { std::atomic v = ATOMIC_VAR_INIT(5); assert(v == 5); }