blob: fe95e6a5983a0a5e4acd4e7d1b89492513157e51 [file] [log] [blame]
Eric Fiselier4889a162014-10-27 21:38:23 +00001//===----------------------------------------------------------------------===//
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
21int main()
22{
23}