aboutsummaryrefslogtreecommitdiff
path: root/clang/test/Sema/check-increment.c
blob: 66321a1c45e298e37b69fb1e222ab0ad13e97679 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// RUN: %clang_cc1 -fsyntax-only -verify %s
// RUN: %clang_cc1 -fsyntax-only -verify %s -fexperimental-new-constant-interpreter
// expected-no-diagnostics

int printf(const char *, ...);
typedef int *pint;
int main(void) {
   int a[5] = {0};
   pint p = a;
   p++;
   printf("%d\n", *p);
}