aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp2a/concepts-nonbool3.C
blob: 2a2af54847b286abf58ddb8380435fc8c58c8c36 (plain)
1
2
3
4
5
// { dg-do compile { target c++20 } }

template <auto V> concept C = false || V || false; // { dg-error "has type 'int'" }
template <auto V> int f() requires C<V>;
int a = f<0>(); // { dg-error "no match" }