☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
cpp2a
/
concepts-defarg2.C
☽
☼
gcc/testsuite/g++.dg/cpp2a/concepts-defarg2.C
code
plain
raw
1
// PR c++/97052
2
// { dg-do compile { target c++20 } }
3
4
template<typename T, typename U = typename T::type>
5
concept C = true;
6
7
constexpr bool f(C auto) {
8
return true;
9
}
10
11
static_assert(f(0));
12
13
C auto x = 0;