flow: fix some parent transition fallout
[smatch.git] / validation / sm_implied3.c
blobccad9f9de1be2c12142165d2843f8a63526c0aeb
1 #define NULL ((void *)0)
3 struct ture {
4 int *a;
5 };
7 struct ture *b;
8 struct ture *c;
10 void func (void)
12 struct ture *ab;
13 int ret = 0;
15 if (b) {
16 ret = -1;
17 goto foo;
20 if (c) {}
22 ab = some_func();
23 if (NULL == ab) {
24 ret = -1;
25 goto foo;
27 foo:
28 if (ret) {
29 return;
31 ab->a = 1;
34 * check-name: Smatch implied #3
35 * check-command: smatch sm_implied3.c