p3.cpp revision 7e545d95bc92157f9f124d95aa2ed66d691d2028
1// RUN: %clang_cc1 -fsyntax-only -std=c++11 %s -verify 2 3void test_nonaggregate(int i) { 4 auto lambda = [i]() -> void {}; // expected-error{{lambda expressions are not supported yet}} \ 5 // expected-note 3{{candidate constructor}} 6 decltype(lambda) foo = { 1 }; // expected-error{{no matching constructor}} 7} 8