blob: a2e86931e9c0353657d287691e0a752133a507da (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
// RUN: %clang_cc1 %s -verify -fsyntax-only -Wc++2a-compat -std=c++17
#define concept constexpr bool
template<typename T>
concept x = 0;
#undef concept
int co_await = 0; // expected-warning {{'co_await' is a keyword in C++2a}}
int co_return = 0; // expected-warning {{'co_return' is a keyword in C++2a}}
int co_yield = 0; // expected-warning {{'co_yield' is a keyword in C++2a}}
int char8_t = 0; // expected-warning {{'char8_t' is a keyword in C++2a}}
int concept = 0; // expected-warning {{'concept' is a keyword in C++2a}}
int requires = 0; // expected-warning {{'requires' is a keyword in C++2a}}
int consteval = 0; // expected-warning {{'consteval' is a keyword in C++2a}}
int constinit = 0; // expected-warning {{'constinit' is a keyword in C++2a}}
|