2015-10-22 13:21:12 +08:00
|
|
|
// RUN: %clang_cc1 -fsyntax-only %s
|
2016-10-02 11:31:58 +08:00
|
|
|
// RUN: %clang_cc1 -fcoroutines-ts -DCORO -fsyntax-only %s
|
2015-10-22 13:21:12 +08:00
|
|
|
|
|
|
|
#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);
|