Howard Hinnant | 3e51952 | 2010-05-11 19:42:16 +0000 | [diff] [blame] | 1 | //===----------------------------------------------------------------------===// |
| 2 | // |
Chandler Carruth | 57b08b0 | 2019-01-19 10:56:40 +0000 | [diff] [blame] | 3 | // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. |
| 4 | // See https://llvm.org/LICENSE.txt for license information. |
| 5 | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
Howard Hinnant | 3e51952 | 2010-05-11 19:42:16 +0000 | [diff] [blame] | 6 | // |
| 7 | //===----------------------------------------------------------------------===// |
Jonathan Roelofs | b3fcc67 | 2014-09-05 19:45:05 +0000 | [diff] [blame] | 8 | // |
| 9 | // UNSUPPORTED: libcpp-has-no-threads |
Howard Hinnant | 3e51952 | 2010-05-11 19:42:16 +0000 | [diff] [blame] | 10 | |
| 11 | // <thread> |
| 12 | |
Howard Hinnant | e8e7af2 | 2010-08-21 21:01:59 +0000 | [diff] [blame] | 13 | // #define __STDCPP_THREADS__ __cplusplus |
Howard Hinnant | 3e51952 | 2010-05-11 19:42:16 +0000 | [diff] [blame] | 14 | |
| 15 | #include <thread> |
| 16 | |
| 17 | int main() |
| 18 | { |
Howard Hinnant | e8e7af2 | 2010-08-21 21:01:59 +0000 | [diff] [blame] | 19 | #ifndef __STDCPP_THREADS__ |
| 20 | #error __STDCPP_THREADS__ is not defined |
Howard Hinnant | 3e51952 | 2010-05-11 19:42:16 +0000 | [diff] [blame] | 21 | #endif |
| 22 | } |