Sign in
cobalt
/
cobalt
/
07081467c3d00b04a6a1162e0566a5a8b9cfe2d5
/
.
/
third_party
/
llvm-project
/
clang
/
test
/
Analysis
/
nonnullparamchecker-crash.cpp
blob: 76480f4d92f2ba18de53e6107ee02d92216f2c82 [
file
] [
log
] [
blame
]
// RUN: %clang_analyze_cc1 -analyzer-checker=core -std=c++11 -verify %s
class
C
{};
// expected-no-diagnostics
void
f
(
C i
)
{
auto
lambda
=
[&]
{
f
(
i
);
};
typedef
decltype
(
lambda
)
T
;
T
*
blah
=
new
T
(
lambda
);
(*
blah
)();
delete
blah
;
}