From 6765d449ed05d4719f313c33a4c13de2649c32b7 Mon Sep 17 00:00:00 2001 From: Zhongxing Xu Date: Tue, 3 Mar 2009 00:28:42 +0000 Subject: Add test case for pointer arithmetic. llvm-svn: 65907 --- clang/test/Analysis/ptr-arith.c | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 clang/test/Analysis/ptr-arith.c (limited to 'clang/test/Analysis/ptr-arith.c') diff --git a/clang/test/Analysis/ptr-arith.c b/clang/test/Analysis/ptr-arith.c new file mode 100644 index 00000000000..a8d03eb3d88 --- /dev/null +++ b/clang/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; +} -- cgit v1.2.3