15a83710eSEric Fiselier //===----------------------------------------------------------------------===// 25a83710eSEric Fiselier // 357b08b09SChandler Carruth // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 457b08b09SChandler Carruth // See https://llvm.org/LICENSE.txt for license information. 557b08b09SChandler Carruth // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 65a83710eSEric Fiselier // 75a83710eSEric Fiselier //===----------------------------------------------------------------------===// 85a83710eSEric Fiselier // 9*a7f9895cSLouis Dionne // UNSUPPORTED: no-threads 105a83710eSEric Fiselier 115a83710eSEric Fiselier // <thread> 125a83710eSEric Fiselier 139aae539dSNico Weber // #define __STDCPP_THREADS__ 1 145a83710eSEric Fiselier 155a83710eSEric Fiselier #include <thread> 165a83710eSEric Fiselier 177fc6a556SMarshall Clow #include "test_macros.h" 187fc6a556SMarshall Clow main(int,char **)192df59c50SJF Bastienint main(int, char**) 205a83710eSEric Fiselier { 215a83710eSEric Fiselier #ifndef __STDCPP_THREADS__ 225a83710eSEric Fiselier #error __STDCPP_THREADS__ is not defined 239aae539dSNico Weber #elif __STDCPP_THREADS__ != 1 249aae539dSNico Weber #error __STDCPP_THREADS__ has the wrong value 255a83710eSEric Fiselier #endif 262df59c50SJF Bastien 272df59c50SJF Bastien return 0; 285a83710eSEric Fiselier } 29