☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
cpp2a
/
concepts-nonbool3.C
☽
☼
gcc/testsuite/g++.dg/cpp2a/concepts-nonbool3.C
code
plain
raw
1
// { dg-do compile { target c++20 } }
2
3
template <auto V> concept C = false || V || false; // { dg-error "has type 'int'" }
4
template <auto V> int f() requires C<V>;
5
int a = f<0>(); // { dg-error "no match" }