Add missing test for warning added in r310803.

llvm-svn: 310978
This commit is contained in:
Richard Smith 2017-08-16 00:06:07 +00:00
parent 5671b890ea
commit 55eb844259
1 changed files with 9 additions and 0 deletions

View File

@ -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}}