Debian Codegraph @

gcc/testsuite/g++.dg/cpp0x/auto52.C

raw
1 // PR c++/86942
2 // { dg-do compile { target c++11 } }
3
4 using T = auto() -> int;
5 using U = void() -> int; // { dg-error "11:.type name. function with trailing return type not declared with .auto." }
6 using W = auto(); // { dg-error "11:.*auto." }