Debian Codegraph @

gcc/testsuite/g++.dg/cpp2a/fn-template26.C

raw
1 // PR c++/110524
2 // { dg-do compile { target c++20 } }
3
4 template<class T>
5 auto f(T t) -> decltype(g<T>(t));
6
7 namespace N {
8 struct A { };
9 template<class T> void g(T);
10 };
11
12 int main() {
13 f(N::A{});
14 }
15
16 // { dg-final { scan-assembler "_Z1fIN1N1AEEDTcl1gIT_Efp_EES2_" } }