diff options
Diffstat (limited to 'clang/test/SemaCXX/cxx-concept-declaration.cpp')
| -rw-r--r-- | clang/test/SemaCXX/cxx-concept-declaration.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/test/SemaCXX/cxx-concept-declaration.cpp b/clang/test/SemaCXX/cxx-concept-declaration.cpp index 6bc2d482dcb..f9878bc5812 100644 --- a/clang/test/SemaCXX/cxx-concept-declaration.cpp +++ b/clang/test/SemaCXX/cxx-concept-declaration.cpp @@ -15,3 +15,7 @@ struct B { struct C { template<typename T> static concept bool D3 = true; // expected-error {{concept declarations may only appear in namespace scope}} }; + +concept bool D4() { return true; } // expected-error {{'concept' can only appear on the definition of a function template or variable template}} + +concept bool D5 = true; // expected-error {{'concept' can only appear on the definition of a function template or variable template}} |

