1 // Test that in pedantic mode, we warn about the extension to allow return
2 // type deduction when the lambda contains more than just a single
5 // { dg-options "-std=c++0x -pedantic" }
11 [=] { return t+1; }; // OK
14 return i+1; // { dg-warning "only statement" }