aboutsummaryrefslogtreecommitdiff
path: root/test/Analysis/misc-ps-flat-store.c
blob: e6369cbfb079b808e44bfa312194e9e64b68a4d4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
// RUN: %clang_cc1 -analyze -analyzer-checker=core -analyzer-store=flat -verify %s

void f1() {
  int x;
  int *p;
  x = 1;
  p = 0;
  if (x != 1)
    *p = 1; // no-warning
}