diff options
Diffstat (limited to 'clang/test/Sema/check-increment.c')
-rw-r--r-- | clang/test/Sema/check-increment.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/clang/test/Sema/check-increment.c b/clang/test/Sema/check-increment.c new file mode 100644 index 0000000..070ea74 --- /dev/null +++ b/clang/test/Sema/check-increment.c @@ -0,0 +1,10 @@ +// RUN: %clang_cc1 -fsyntax-only -verify %s + +int printf(const char *, ...); +typedef int *pint; +int main() { + int a[5] = {0}; + pint p = a; + p++; + printf("%d\n", *p); +} |