// PR c++/120685 // { dg-do compile { target c++11 } } // { dg-options "" } template void foo (decltype (auto (T ())) x) {} // { dg-warning "'auto\\\(x\\\)' only available with" "" { target c++20_down } } int main () { foo (1); }