llvm-project/clang/test/Lexer/coroutines.cpp
Chuanqi Xu 6ed67ccba7 [Coroutines] Remove -fcoroutines-ts
Since we decided to remove the support for `-fcoroutines-ts` in
clang/llvm17 and the clang16/llvm16 is branched. So we're going to
remove the `-fcoroutines-ts` option.
2023-02-23 14:40:58 +08:00

13 lines
335 B
C++

// RUN: %clang_cc1 -fsyntax-only %s
// RUN: %clang_cc1 -std=c++20 -DCORO -fsyntax-only %s
#ifdef CORO
#define CORO_KEYWORD(NAME) _Static_assert(!__is_identifier(NAME), #NAME)
#else
#define CORO_KEYWORD(NAME) _Static_assert(__is_identifier(NAME), #NAME)
#endif
CORO_KEYWORD(co_await);
CORO_KEYWORD(co_return);
CORO_KEYWORD(co_yield);