diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2015-10-22 04:27:47 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2015-10-22 04:27:47 +0000 |
commit | 1400754414245608c38cfddf5869041682ff641a (patch) | |
tree | 9553f971c03b03ad421a0909b73df7249e8b29bf /test/Lexer | |
parent | 6b12bdddf09947906795e3fe8f0922f7498ae582 (diff) |
[coroutines] Add feature-test macro for coroutines, defined to 1 to indicate
the implementation is incomplete.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@250982 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Lexer')
-rw-r--r-- | test/Lexer/cxx-features.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/Lexer/cxx-features.cpp b/test/Lexer/cxx-features.cpp index 4ec4d55ac0..6c4a092b1c 100644 --- a/test/Lexer/cxx-features.cpp +++ b/test/Lexer/cxx-features.cpp @@ -2,6 +2,7 @@ // RUN: %clang_cc1 -std=c++11 -verify %s // RUN: %clang_cc1 -std=c++1y -fsized-deallocation -verify %s // RUN: %clang_cc1 -std=c++1y -fsized-deallocation -fconcepts-ts -DCONCEPTS_TS=1 -verify %s +// RUN: %clang_cc1 -fcoroutines -DCOROUTINES -verify %s // expected-no-diagnostics @@ -128,3 +129,7 @@ #if check(experimental_concepts, 0, 0, CONCEPTS_TS) #error "wrong value for __cpp_experimental_concepts" #endif + +#if (COROUTINES && !__cpp_coroutines) || (!COROUTINES && __cpp_coroutines) +#error "wrong value for __cpp_coroutines" +#endif |