blob: 0eabb7b8889626b3dac653f913608be78550313c [file] [log] [blame]
Zhongxing Xubcd2f762009-02-06 08:56:58 +00001// RUN: clang -analyze -checker-simple -analyzer-store-region -verify %s
2
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}