Home | History | Annotate | Download | only in atomics
      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 #ifndef _LIBCPP_HAS_NO_THREADS
     16 #define _LIBCPP_HAS_NO_THREADS
     17 #endif
     18 
     19 #include <atomic>
     20 
     21 int main()
     22 {
     23 }
     24