Add test case for PointerSubChecker.

llvm-svn: 86657
This commit is contained in:
Zhongxing Xu 2009-11-10 02:45:49 +00:00
parent bbc1067001
commit 70ba4908d0
1 changed files with 5 additions and 0 deletions

View File

@ -55,3 +55,8 @@ void f5() {
int a[10];
p = a + 1; // no-warning
}
// Allow arithmetic on different symbolic regions.
void f6(int *p, int *q) {
int d = q - p; // no-warning
}