blob: 8908adb1057c77c29e5ac0aaeeacdc791f3f4a4e [file] [log] [blame]
Ted Kremenek6c07bdb2009-06-26 00:05:51 +00001// RUN: clang-cc -analyze -checker-cfref -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)
Anders Carlsson9668b1f2009-07-30 22:37:41 +000012 (void)*x; // no-warning
Zhongxing Xubcd2f762009-02-06 08:56:58 +000013}