Skip to content
Snippets Groups Projects
Commit 70ba4908 authored by Zhongxing Xu's avatar Zhongxing Xu
Browse files

Add test case for PointerSubChecker.

llvm-svn: 86657
parent bbc10670
No related branches found
No related tags found
No related merge requests found
...@@ -55,3 +55,8 @@ void f5() { ...@@ -55,3 +55,8 @@ void f5() {
int a[10]; int a[10];
p = a + 1; // no-warning p = a + 1; // no-warning
} }
// Allow arithmetic on different symbolic regions.
void f6(int *p, int *q) {
int d = q - p; // no-warning
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment