llvm-project/clang/test/Analysis/structured_bindings.cpp

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

10 lines
240 B
C++
Raw Normal View History

// 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{{non-void function does not return a value}}