blob: 562f92a78bbccb71326a5947d39d9c31a501de93 [file] [log] [blame]
Douglas Gregor291af2b2012-02-09 08:15:36 +00001// RUN: %clang_cc1 -fsyntax-only -std=c++11 %s -verify
2
3void test_nonaggregate(int i) {
Douglas Gregor656bc622012-02-09 08:26:42 +00004 auto lambda = [i]() -> void {}; // expected-note 3{{candidate constructor}}
Douglas Gregor291af2b2012-02-09 08:15:36 +00005 decltype(lambda) foo = { 1 }; // expected-error{{no matching constructor}}
6}