summaryrefslogtreecommitdiffstats
path: root/clang/test/Analysis/ptr-arith.c
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/Analysis/ptr-arith.c')
-rw-r--r--clang/test/Analysis/ptr-arith.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/clang/test/Analysis/ptr-arith.c b/clang/test/Analysis/ptr-arith.c
index a8d03eb3d88..7b66b2f8fe3 100644
--- a/clang/test/Analysis/ptr-arith.c
+++ b/clang/test/Analysis/ptr-arith.c
@@ -5,3 +5,10 @@ void f1() {
int *p = a;
++p;
}
+
+char* foo();
+
+void f2() {
+ char *p = foo();
+ ++p;
+}
OpenPOWER on IntegriCloud