Sign in
android
/
platform
/
external
/
clang
/
b326ca8ffbea96f9cc8a457b0f57be880304a6f5
/
.
/
test
/
CXX
/
expr
/
expr.prim
/
expr.prim.lambda
/
p3.cpp
blob: 562f92a78bbccb71326a5947d39d9c31a501de93 [
file
] [
log
] [
blame
]
// RUN: %clang_cc1 -fsyntax-only -std=c++11 %s -verify
void
test_nonaggregate
(
int
i
)
{
auto
lambda
=
[
i
]()
->
void
{};
// expected-note 3{{candidate constructor}}
decltype
(
lambda
)
foo
=
{
1
};
// expected-error{{no matching constructor}}
}