diff options
Diffstat (limited to 'clang/test/Analysis/ptr-arith.c')
-rw-r--r-- | clang/test/Analysis/ptr-arith.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/test/Analysis/ptr-arith.c b/clang/test/Analysis/ptr-arith.c index 071c8699a3a..0c2e2213982 100644 --- a/clang/test/Analysis/ptr-arith.c +++ b/clang/test/Analysis/ptr-arith.c @@ -281,3 +281,8 @@ void symbolic_region(int *p) { if (&a <= p) WARN; // expected-warning{{}} } + +void PR7527 (int *p) { + if (((int) p) & 1) // not crash + return; +} |