[docs] Add LICENSE.txt to the root of the mono-repo
[llvm-project.git] / clang / test / Lexer / cxx2a_keyword_as_cxx17.cpp
blobec42e219494c8be33dec58cad859bddfb40505e0
1 // RUN: %clang_cc1 %s -verify -fsyntax-only -Wc++20-compat -std=c++17
3 #define concept constexpr bool
4 template<typename T>
5 concept x = 0;
6 #undef concept
8 int co_await = 0; // expected-warning {{'co_await' is a keyword in C++20}}
9 int co_return = 0; // expected-warning {{'co_return' is a keyword in C++20}}
10 int co_yield = 0; // expected-warning {{'co_yield' is a keyword in C++20}}
11 int char8_t = 0; // expected-warning {{'char8_t' is a keyword in C++20}}
12 int concept = 0; // expected-warning {{'concept' is a keyword in C++20}}
13 int requires = 0; // expected-warning {{'requires' is a keyword in C++20}}
14 int consteval = 0; // expected-warning {{'consteval' is a keyword in C++20}}
15 int constinit = 0; // expected-warning {{'constinit' is a keyword in C++20}}