Author: rsmith Date: Tue Aug 15 17:06:07 2017 New Revision: 310978 URL: http://llvm.org/viewvc/llvm-project?rev=310978&view=rev Log: Add missing test for warning added in r310803.
Added: cfe/trunk/test/Lexer/cxx2a_keyword_as_cxx17.cpp Added: cfe/trunk/test/Lexer/cxx2a_keyword_as_cxx17.cpp URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Lexer/cxx2a_keyword_as_cxx17.cpp?rev=310978&view=auto ============================================================================== --- cfe/trunk/test/Lexer/cxx2a_keyword_as_cxx17.cpp (added) +++ cfe/trunk/test/Lexer/cxx2a_keyword_as_cxx17.cpp Tue Aug 15 17:06:07 2017 @@ -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}} _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits