aboutsummaryrefslogtreecommitdiff
path: root/test/CXX/expr/expr.prim/expr.prim.lambda/p3.cpp
blob: 103f79d01582b0d105e3c691fa33679d8a0a4a7d (plain)
1
2
3
4
5
6
7
// 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}}
}