blob: bfae0bbee5e5f9aaf9cf7412842bd8b28d516f59 [file] [log] [blame]
Howard Hinnant3e519522010-05-11 19:42:16 +00001//===----------------------------------------------------------------------===//
2//
Chandler Carruth57b08b02019-01-19 10:56:40 +00003// 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 Hinnant3e519522010-05-11 19:42:16 +00006//
7//===----------------------------------------------------------------------===//
Jonathan Roelofsb3fcc672014-09-05 19:45:05 +00008//
9// UNSUPPORTED: libcpp-has-no-threads
Howard Hinnant3e519522010-05-11 19:42:16 +000010
11// <thread>
12
Howard Hinnante8e7af22010-08-21 21:01:59 +000013// #define __STDCPP_THREADS__ __cplusplus
Howard Hinnant3e519522010-05-11 19:42:16 +000014
15#include <thread>
16
17int main()
18{
Howard Hinnante8e7af22010-08-21 21:01:59 +000019#ifndef __STDCPP_THREADS__
20#error __STDCPP_THREADS__ is not defined
Howard Hinnant3e519522010-05-11 19:42:16 +000021#endif
22}