зеркало из https://github.com/microsoft/clang-1.git
Put the region store specific test in a separate file.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@63930 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Родитель
02ebefbb98
Коммит
bcd2f76edb
|
@ -212,12 +212,3 @@ void f12(HF12ITEM i, char *q) {
|
|||
*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
|
||||
}
|
Загрузка…
Ссылка в новой задаче