blob: 32f787db4aeb8ee38760529a888092ab83483cf6 [file] [log] [blame]
Ted Kremenek6c07bdb2009-06-26 00:05:51 +00001// RUN: clang-cc -analyze -checker-cfref -analyzer-store=region -verify %s
Zhongxing Xue8e4d8c2008-11-20 00:46:15 +00002
3struct s {
4 int data;
5};
6
7struct s global;
8
9void g(int);
10
11void f4() {
12 int a;
13 if (global.data == 0)
14 a = 3;
Ted Kremenek42268462008-12-04 02:07:20 +000015 if (global.data == 0) // When the true branch is feasible 'a = 3'.
Zhongxing Xue8e4d8c2008-11-20 00:46:15 +000016 g(a); // no-warning
17}