summaryrefslogtreecommitdiff
path: root/test/Lexer/cxx2a_keyword_as_cxx17.cpp
blob: c6a821be0ea717c66cb38d06178d04c6800a723c (plain)
1
2
3
4
5
6
7
8
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}}