Debian Codegraph @

gcc/testsuite/g++.dg/cpp23/auto-fncast19.C

raw
1 // PR c++/120685
2 // { dg-do compile { target c++11 } }
3 // { dg-options "" }
4
5 template <typename T>
6 void foo (decltype (auto (T ())) x) {} // { dg-warning "'auto\\\(x\\\)' only available with" "" { target c++20_down } }
7
8 int
9 main ()
10 {
11 foo <int> (1);
12 }