aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/pr59111.C
blob: 4e48854418fa383180dc07d5b165f3e0d4cfcf6f (plain)
1
2
3
4
5
// PR c++/59111
// { dg-do compile { target c++11 } }

auto& foo();	// { dg-error "type specifier without trailing return type" "" { target { ! c++1y } } }
int i = foo();	// { dg-error "" }