mirror of
https://github.com/Gericom/teak-llvm.git
synced 2025-06-23 21:45:46 -04:00

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) {
|
|
}
|
|
}
|
|
|