aboutsummaryrefslogtreecommitdiff
path: root/clang/test/Parser/cxx-concept-declaration.cpp
blob: 9248e26b9cbebf2673fc9d7a718ab0c7a7e70bcb (plain)
1
2
3
4
5
6
7
8
9
10
11
12

// Support parsing of concepts
// Disabled for now.

// RUN:  %clang_cc1 -std=c++20 -x c++ -verify %s
template<typename T> concept C1 = true;

template<class T>
concept C = true;

template<class T>
class C<int> {}; //expected-error{{identifier followed by '<' indicates a class template specialization but 'C' refers to a concept}}