mirror of https://github.com/microsoft/clang.git
Add missing test for warning added in r310803.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@310978 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
fea7a19409
commit
48d699f0c1
|
@ -0,0 +1,9 @@
|
|||
// 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 concept = 0; // expected-warning {{'concept' is a keyword in C++2a}}
|
||||
int requires = 0; // expected-warning {{'requires' is a keyword in C++2a}}
|
Loading…
Reference in New Issue