aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/cpp1y/pr60190.C
blob: 9a5b484a667045fe5dee1d39286b39ab6eeb6d53 (plain)
1
2
3
4
// PR c++/60190
// { dg-do compile { target c++1y } }

auto f = []<int>() -> int() {}; // { dg-error "returning a function|expected" }