Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
external
/
clang
/
8e8fb3be5bd78f0564444eca02b404566a5f3b5d
/
.
/
test
/
CXX
/
expr
/
expr.prim
/
expr.prim.lambda
/
p20.cpp
blob: 17eb841fc3fcf6243b935f2a755d5bdcf12510a0 [
file
] [
log
] [
blame
]
// RUN: %clang_cc1 -std=c++11 %s -Wunused -verify
// expected-no-diagnostics
template
<
typename
T
>
void
destroy
(
T
*
ptr
)
{
ptr
->~
T
();
(*
ptr
).~
T
();
}
void
destructor
()
{
auto
lambda
=
[]{};
destroy
(&
lambda
);
}