blob: fdc740488a2cda2eab24d88cb014d90f4746e348 [file] [log] [blame]
Daniel Dunbard7d5f022009-03-24 02:24:46 +00001// RUN: clang-cc -analyze -checker-simple -analyzer-store=region -verify %s
Zhongxing Xubcd2f762009-02-06 08:56:58 +00002
3// Region store must be enabled for tests in this file.
4
5// Exercise creating ElementRegion with symbolic super region.
6void foo(int* p) {
7 int *x;
8 int a;
9 if (p[0] == 1)
10 x = &a;
11 if (p[0] == 1)
12 *x; // no-warning
13}