☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
cpp23
/
auto-fncast19.C
☽
☼
gcc/testsuite/g++.dg/cpp23/auto-fncast19.C
code
plain
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
}