annotate clang/test/Analysis/structured_bindings.cpp @ 150:1d019706d866

LLVM10
author anatofuz
date Thu, 13 Feb 2020 15:10:13 +0900
parents
children c4bab56944e8
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
150
anatofuz
parents:
diff changeset
1 // RUN: %clang_analyze_cc1 -std=c++17 -analyzer-checker=core -verify %s
anatofuz
parents:
diff changeset
2
anatofuz
parents:
diff changeset
3 struct s { int a; };
anatofuz
parents:
diff changeset
4 int foo() {
anatofuz
parents:
diff changeset
5 auto[a] = s{1}; // FIXME: proper modelling
anatofuz
parents:
diff changeset
6 if (a) {
anatofuz
parents:
diff changeset
7 }
anatofuz
parents:
diff changeset
8 } // expected-warning{{non-void function does not return a value}}
anatofuz
parents:
diff changeset
9