Sign in
llvm
/
clang
/
65acf43270ea2894dffa0d0b292b92402f80c8cb
/
.
/
test
/
Analysis
/
structured_bindings.cpp
blob: fcc976c4c3d3bda327fcb4a3d1c97a2a73115f5c [
file
] [
log
] [
blame
]
// RUN: %clang_analyze_cc1 -std=c++17 -analyzer-checker=core -verify %s
struct
s
{
int
a
;
};
int
foo
()
{
auto
[
a
]
=
s
{
1
};
// FIXME: proper modelling
if
(
a
)
{
}
}
// expected-warning{{control reaches end of non-void function}}