You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
10 lines
240 B
10 lines
240 B
7 months ago
|
// 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}}
|
||
|
|