summaryrefslogtreecommitdiffstats
path: root/test/Sema/check-increment.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/Sema/check-increment.c')
-rw-r--r--test/Sema/check-increment.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/Sema/check-increment.c b/test/Sema/check-increment.c
new file mode 100644
index 0000000..9809544
--- /dev/null
+++ b/test/Sema/check-increment.c
@@ -0,0 +1,10 @@
+// RUN: clang-cc -fsyntax-only -verify %s
+
+#include <stdio.h>
+typedef int *pint;
+int main() {
+ int a[5] = {0};
+ pint p = a;
+ p++;
+ printf("%d\n", *p);
+}
OpenPOWER on IntegriCloud