diff options
author | Hubert Tong <hubert.reinterpretcast@gmail.com> | 2017-12-07 00:34:20 +0000 |
---|---|---|
committer | Hubert Tong <hubert.reinterpretcast@gmail.com> | 2017-12-07 00:34:20 +0000 |
commit | da187e3690a564e250085528567a840dfd479b53 (patch) | |
tree | 7556df9d4a2450b401b269ee9959a89fea84d0ad /test/Parser | |
parent | 08fe1221761fe36d59a47304d2b5e6ba66c61c87 (diff) |
Remove old concepts parsing code
Summary:
This is so we can implement concepts per P0734R0. Relevant failing test
cases are disabled.
Reviewers: hubert.reinterpretcast, rsmith, saar.raz, nwilson
Reviewed By: saar.raz
Subscribers: cfe-commits
Differential Revision: https://reviews.llvm.org/D40380
Patch by Changyu Li!
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@319992 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Parser')
-rw-r--r-- | test/Parser/cxx-concept-declaration.cpp | 29 |
1 files changed, 4 insertions, 25 deletions
diff --git a/test/Parser/cxx-concept-declaration.cpp b/test/Parser/cxx-concept-declaration.cpp index fad5975e4a..2e9d1ac2fc 100644 --- a/test/Parser/cxx-concept-declaration.cpp +++ b/test/Parser/cxx-concept-declaration.cpp @@ -1,28 +1,7 @@ -// Support parsing of function concepts and variable concepts +// Support parsing of concepts +// Disabled for now. +// expected-no-diagnostics // RUN: %clang_cc1 -std=c++14 -fconcepts-ts -x c++ -verify %s - -template<typename T> concept bool C1 = true; - -template<typename T> concept bool C2() { return true; } - -template<typename T> -struct A { typedef bool Boolean; }; - -template<int N> -A<void>::Boolean concept C3(!0); - -template<typename T, int = 0> -concept auto C4(void) -> bool { return true; } - -constexpr int One = 1; - -template <typename> -static concept decltype(!0) C5 { bool(One) }; - -template<typename T> concept concept bool C6 = true; // expected-warning {{duplicate 'concept' declaration specifier}} - -template<typename T> concept concept bool C7() { return true; } // expected-warning {{duplicate 'concept' declaration specifier}} - -template<concept T> concept bool D1 = true; // expected-error {{unknown type name 'T'}} +// template<typename T> concept C1 = true; |