aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp23/auto-fncast16.C
blob: e2c13f6b050b47b6084611b80b49f9eafa90dc02 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// PR c++/110025
// { dg-do compile { target c++23 } }

template<auto V, class = decltype(auto(V)), class = decltype(auto{V})>
struct A { };

template<auto V>
A<V> f();

int main() {
  f<0>();
}