blob: 239b6d4f469f83973f2a7b1c5a5464c33572a194 [file] [log] [blame]
Douglas Gregor21f46922012-02-08 20:17:14 +00001// RUN: %clang_cc1 -fsyntax-only -std=c++11 %s -verify
2
3// Check that analysis-based warnings work in lambda bodies.
4void analysis_based_warnings() {
5 []() -> int { }; // expected-warning{{control reaches end of non-void function}} \
6 // expected-error{{lambda expressions are not supported yet}}
7}
8
9// FIXME: Also check translation of captured vars to data members,
10// most of which isn't in the AST.
11
12