]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/libcxx/atomics/libcpp-has-no-threads.fail.cpp
Vendor import of libc++ trunk r290819:
[FreeBSD/FreeBSD.git] / test / libcxx / atomics / libcpp-has-no-threads.fail.cpp
1 //===----------------------------------------------------------------------===//
2 //
3 //                     The LLVM Compiler Infrastructure
4 //
5 // This file is dual licensed under the MIT and the University of Illinois Open
6 // Source Licenses. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9
10 // <atomic>
11
12 // Test that including <atomic> fails to compile when _LIBCPP_HAS_NO_THREADS
13 // is defined.
14
15 // MODULES_DEFINES: _LIBCPP_HAS_NO_THREADS
16 #ifndef _LIBCPP_HAS_NO_THREADS
17 #define _LIBCPP_HAS_NO_THREADS
18 #endif
19
20 #include <atomic>
21
22 int main()
23 {
24 }