mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-12-14 19:49:36 +00:00
065962375d
Proper modeling still remains to be done. Note that BindingDecl#getHoldingVar() is almost always null, and this should probably be handled by dealing with DecompositionDecl beforehand. rdar://36852163 Differential Revision: https://reviews.llvm.org/D44183 llvm-svn: 326951
11 lines
202 B
C++
11 lines
202 B
C++
// RUN: %clang_analyze_cc1 -std=c++17 -analyzer-checker=core -verify %s
|
|
|
|
// expected-no-diagnostics
|
|
struct s { int a; };
|
|
int foo() {
|
|
auto[a] = s{1}; // FIXME: proper modelling
|
|
if (a) {
|
|
}
|
|
}
|
|
|