Zhongxing Xu | e8e4d8c | 2008-11-20 00:46:15 +0000 | [diff] [blame^] | 1 | // RUN: clang -checker-simple -analyzer-store-region -verify %s |
2 | |||||
3 | struct s { | ||||
4 | int data; | ||||
5 | }; | ||||
6 | |||||
7 | struct s global; | ||||
8 | |||||
9 | void g(int); | ||||
10 | |||||
11 | void f4() { | ||||
12 | int a; | ||||
13 | if (global.data == 0) | ||||
14 | a = 3; | ||||
15 | if (global.data == 0) | ||||
16 | g(a); // no-warning | ||||
17 | } |