xref: /llvm-project/clang/test/Parser/cxx-concept-declaration.cpp (revision ef1bb11a34de2822514878b99b442575a022a658)
1 
2 // Support parsing of concepts
3 // Disabled for now.
4 
5 // RUN:  %clang_cc1 -std=c++20 -x c++ -verify %s
6 template<typename T> concept C1 = true;
7 
8 template<class T>
9 concept C = true;
10 
11 template<class T>
12 class C<int> {}; //expected-error{{identifier followed by '<' indicates a class template specialization but 'C' refers to a concept}}
13