[docs] Add LICENSE.txt to the root of the mono-repo
[llvm-project.git] / clang / test / Lexer / coroutines.cpp
blob186c84b36ed6f7c033ee70bd19646838aebae710
1 // RUN: %clang_cc1 -fsyntax-only %s
2 // RUN: %clang_cc1 -fcoroutines-ts -DCORO -fsyntax-only %s
4 #ifdef CORO
5 #define CORO_KEYWORD(NAME) _Static_assert(!__is_identifier(NAME), #NAME)
6 #else
7 #define CORO_KEYWORD(NAME) _Static_assert(__is_identifier(NAME), #NAME)
8 #endif
10 CORO_KEYWORD(co_await);
11 CORO_KEYWORD(co_return);
12 CORO_KEYWORD(co_yield);