brintos

brintos / llvm-project-archived public Read only

0
0
Text · 557 B · 0d63521 Raw
18 lines · cpp
1// RUN: split-file %s %t.dir2// RUN: %clang_cc1 -verify %t.dir/defined.cpp3// RUN: %clang_cc1 -verify -mthread-model posix %t.dir/defined.cpp4// RUN: %clang_cc1 -verify -mthread-model single %t.dir/not-defined.cpp5// RUN: %clang_cc1 -verify -x c %t.dir/not-defined.cpp6 7//--- defined.cpp8// expected-no-diagnostics9#ifndef __STDCPP_THREADS__10#error __STDCPP_THREADS__ is not defined in posix thread model.11#endif12 13//--- not-defined.cpp14// expected-no-diagnostics15#ifdef __STDCPP_THREADS__16#error __STDCPP_THREADS__ is defined in single thread model.17#endif18