diff options
Diffstat (limited to 'test/CXX/temp/concept/p4.cpp')
-rw-r--r-- | test/CXX/temp/concept/p4.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/CXX/temp/concept/p4.cpp b/test/CXX/temp/concept/p4.cpp new file mode 100644 index 0000000000..2e0226779f --- /dev/null +++ b/test/CXX/temp/concept/p4.cpp @@ -0,0 +1,6 @@ +// RUN: %clang_cc1 -std=c++2a -verify %s + +template<typename T> requires true +concept C = true; // expected-error{{concept cannot have associated constraints}} + +// TODO: Add test for other kinds of associated constraints once we have them. |