// RUN: %clang_cc1 -fsyntax-only -std=c++11 %s -verify

void test_nonaggregate(int i) {
  auto lambda = [i]() -> void {}; // expected-error{{lambda expressions are not supported yet}} \
  // expected-note 3{{candidate constructor}}
  decltype(lambda) foo = { 1 }; // expected-error{{no matching constructor}}
}

Add a test for the non-aggregaticity of lambda types per C++11 [expr.prim.lambda].
Add a test for the non-aggregaticity of lambda types per C++11
[expr.prim.lambda].


git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@150164 91177308-0d34-0410-b5e6-96231b3b80d8
