blob: 966da0cc3fa1d0039ed2c24a7650b7eb95f88330 [file] [log] [blame]
// { dg-do compile { target c++20 } }
template <auto N>
struct A {
static constexpr auto n = N;
};
template <auto N>
constexpr auto g(A<[]{return N;}> a) {
return a.n();
}
static_assert(g<42>({}) == 42);