forked from OSchip/llvm-project
[coroutines] Add forgotten test for lexing coroutines keywords.
llvm-svn: 250992
This commit is contained in:
parent
9be594e36d
commit
f8bdb0a9e4
|
@ -0,0 +1,12 @@
|
|||
// RUN: %clang_cc1 -fsyntax-only %s
|
||||
// RUN: %clang_cc1 -fcoroutines -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);
|
Loading…
Reference in New Issue