diff --git a/clang/test/Analysis/ptr-arith.c b/clang/test/Analysis/ptr-arith.c index f77d7f5ee5ad23d1d0d1ad56818881d58a7ffd40..fd780e8e1066efad9ae1292f883cb70d961cb42f 100644 --- a/clang/test/Analysis/ptr-arith.c +++ b/clang/test/Analysis/ptr-arith.c @@ -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 +}