rename get_single_value_from_range() => get_single_value_from_dinfo()
[smatch.git] / validation / sm_implied3.c
blob3dbad01398e1956547b008de35e09b71af3e8d48
1 struct ture {
2 int *a;
3 };
5 struct ture *b;
6 struct ture *c;
8 void func (void)
10 struct ture *ab;
11 int ret = 0;
13 if (b) {
14 ret = -1;
15 goto foo;
18 if (c) {}
20 ab = some_func();
21 if (NULL == ab) {
22 ret = -1;
23 goto foo;
25 foo:
26 if (ret) {
27 return;
29 ab->a = 1;
32 * check-name: Smatch implied #3
33 * check-command: smatch sm_implied3.c