brintos

brintos / llvm-project-archived public Read only

0
0
Text · 756 B · ec42e21 Raw
16 lines · cpp
1// RUN: %clang_cc1 %s -verify -fsyntax-only -Wc++20-compat -std=c++172 3#define concept constexpr bool4template<typename T>5concept x = 0;6#undef concept7 8int co_await = 0; // expected-warning {{'co_await' is a keyword in C++20}}9int co_return = 0; // expected-warning {{'co_return' is a keyword in C++20}}10int co_yield = 0; // expected-warning {{'co_yield' is a keyword in C++20}}11int char8_t = 0; // expected-warning {{'char8_t' is a keyword in C++20}}12int concept = 0; // expected-warning {{'concept' is a keyword in C++20}}13int requires = 0; // expected-warning {{'requires' is a keyword in C++20}}14int consteval = 0; // expected-warning {{'consteval' is a keyword in C++20}}15int constinit = 0; // expected-warning {{'constinit' is a keyword in C++20}}16