Put the region store specific test in a separate file.
llvm-svn: 63930
This commit is contained in:
parent
e42755334c
commit
4bdb124036
|
@ -212,12 +212,3 @@ void f12(HF12ITEM i, char *q) {
|
||||||
*p = 1; // no-warning
|
*p = 1; // no-warning
|
||||||
}
|
}
|
||||||
|
|
||||||
// Exercise ElementRegion with SymbolicRegion as super region.
|
|
||||||
void foo(int* p) {
|
|
||||||
int *x;
|
|
||||||
int a;
|
|
||||||
if (p[0] == 1)
|
|
||||||
x = &a;
|
|
||||||
if (p[0] == 1)
|
|
||||||
*x; // no-warning
|
|
||||||
}
|
|
||||||
|
|
|
@ -0,0 +1,13 @@
|
||||||
|
// RUN: clang -analyze -checker-simple -analyzer-store-region -verify %s
|
||||||
|
|
||||||
|
// Region store must be enabled for tests in this file.
|
||||||
|
|
||||||
|
// Exercise creating ElementRegion with symbolic super region.
|
||||||
|
void foo(int* p) {
|
||||||
|
int *x;
|
||||||
|
int a;
|
||||||
|
if (p[0] == 1)
|
||||||
|
x = &a;
|
||||||
|
if (p[0] == 1)
|
||||||
|
*x; // no-warning
|
||||||
|
}
|
Loading…
Reference in New Issue