summaryrefslogtreecommitdiff
path: root/test/CXX
diff options
context:
space:
mode:
authorSaar Raz <saar@raz.email>2019-07-10 20:01:44 +0000
committerSaar Raz <saar@raz.email>2019-07-10 20:01:44 +0000
commit0f7a450afd00f19c5fda94c88b9bce48c8980851 (patch)
treee5ec1a739fac4a6238f19c440d343079af58a31e /test/CXX
parentba29c495d6e5b570ac75f2c650b77906eff883bc (diff)
downloadclang-0f7a450afd00f19c5fda94c88b9bce48c8980851.tar.gz
My first test commit.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@365695 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CXX')
-rw-r--r--test/CXX/concepts-ts/dcl.dcl/dcl.spec/dcl.spec.concept/p1.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/CXX/concepts-ts/dcl.dcl/dcl.spec/dcl.spec.concept/p1.cpp b/test/CXX/concepts-ts/dcl.dcl/dcl.spec/dcl.spec.concept/p1.cpp
index 3baf238241..863b608b5b 100644
--- a/test/CXX/concepts-ts/dcl.dcl/dcl.spec/dcl.spec.concept/p1.cpp
+++ b/test/CXX/concepts-ts/dcl.dcl/dcl.spec/dcl.spec.concept/p1.cpp
@@ -30,6 +30,7 @@ template<typename T>
concept bool D7() throw(int) { return true; } // expected-error {{function concept cannot have exception specification}}
// Tag
+
concept class CC1 {}; // expected-error {{'concept' can only appear on the definition of a function template or variable template}}
concept struct CS1 {}; // expected-error {{'concept' can only appear on the definition of a function template or variable template}}
concept union CU1 {}; // expected-error {{'concept' can only appear on the definition of a function template or variable template}}