Debian Codegraph @

gcc/testsuite/g++.dg/cpp2a/concepts-pr67719.C

raw
1 // { dg-do compile { target c++20 } }
2 // { dg-additional-options "-fconcepts" }
3
4 template<class X> concept C =
5 __is_same_as(X, int) || __is_same_as(X, long);
6
7 template<C... Tx>
8 struct Ax {};
9
10 int main() {
11 Ax<int, long> a;
12 Ax<int, long, void> b; // { dg-error "template constraint failure" }
13 return 0;
14 }