1 //===----------------------------------------------------------------------===//
2 //
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
6 //
7 //===----------------------------------------------------------------------===//
8 //
9 // UNSUPPORTED: libcpp-has-no-threads
10 
11 // <thread>
12 
13 // #define __STDCPP_THREADS__ __cplusplus
14 
15 #include <thread>
16 
17 int main(int, char**)
18 {
19 #ifndef __STDCPP_THREADS__
20 #error __STDCPP_THREADS__ is not defined
21 #endif
22 
23   return 0;
24 }
25