blob: 1fca57b47b5c7ba5424e17bb8b44d2b8176b39e4 [file] [log] [blame]
Nuno Lopesafb32f72009-11-06 18:42:13 +00001// RUN: clang-cc -analyze -checker-cfref -analyzer-store=region -verify %s
2// PR3135
3
4typedef struct {
5 int *a;
6} structure;
7
8int bar(structure *x);
9
10int foo()
11{
12 int x;
13 structure y = {&x};
14
15 // the call to bar may initialize x
16 if (bar(&y) && x) // no-warning
17 return 1;
18
19 return 0;
20}