From e184b1e4e06c059a8360fae4c9b5ea00fd62014d Mon Sep 17 00:00:00 2001 From: Zhongxing Xu Date: Tue, 3 Mar 2009 00:28:42 +0000 Subject: [PATCH] Add test case for pointer arithmetic. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65907 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/Analysis/ptr-arith.c | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 test/Analysis/ptr-arith.c diff --git a/test/Analysis/ptr-arith.c b/test/Analysis/ptr-arith.c new file mode 100644 index 0000000000..a8d03eb3d8 --- /dev/null +++ b/test/Analysis/ptr-arith.c @@ -0,0 +1,7 @@ +// RUN: clang -analyze -checker-simple -analyzer-store=region -verify %s + +void f1() { + int a[10]; + int *p = a; + ++p; +} -- 2.40.0