diff options
Diffstat (limited to 'test/Sema/check-increment.c')
-rw-r--r-- | test/Sema/check-increment.c | 10 |
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 0000000000..4447feb0b8 --- /dev/null +++ b/test/Sema/check-increment.c @@ -0,0 +1,10 @@ +// RUN: clang -fsyntax-only -verify %s + +#include <stdio.h> +typedef int *pint; +int main() { + int a[5] = {0}; + pint p = a; + p++; + printf("%d\n", *p); +} |