Revert "[llvm] Improve llvm.objectsize computation by computing GEP, alloca and mallo...
[llvm-project.git] / clang / test / Lexer / coroutines.cpp
blob261f34e75a21ba00985af970c9e77f613fdcf36f
1 // RUN: %clang_cc1 -fsyntax-only %s
2 // RUN: %clang_cc1 -std=c++20 -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);