summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/pr59111.C
blob: 62d8e8f86ec95cacec5c3d42b01ae4c7c7506015 (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++14 } } }
int i = foo();	// { dg-error "" }