Debian Codegraph @

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

raw
1 // { dg-do compile { target c++20 } }
2 // { dg-additional-options "-fconcepts" }
3
4 namespace X
5 {
6 template<class> constexpr bool x = true;
7 }
8
9 template<int> using helper = void;
10
11 template<typename T>
12 concept C =
13 requires
14 {
15 requires X::x<T>;
16 typename helper<T{}>;
17 };
18
19 static_assert(C<int>);