summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-warn2.C
blob: ce5e7c4503a57c6090ad076045c6d9cad4f1cc3e (plain)
1
2
3
4
5
6
7
// PR c++/42370
// { dg-options "-std=c++0x -Wall" }

void foo()
{
  []{ return 0; }();
} // { dg-bogus "no return statement" }