Debian Codegraph @

clang/test/Sema/check-increment.c

raw
1 // RUN: %clang_cc1 -fsyntax-only -verify %s
2 // RUN: %clang_cc1 -fsyntax-only -verify %s -fexperimental-new-constant-interpreter
3 // expected-no-diagnostics
4
5 int printf(const char *, ...);
6 typedef int *pint;
7 int main(void) {
8 int a[5] = {0};
9 pint p = a;
10 p++;
11 printf("%d\n", *p);
12 }