summaryrefslogtreecommitdiffstats
path: root/test/Coverage/html-diagnostics.c
blob: 6144f2fb98a305542e9c6302a0b5716dceb1734b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// RUN: rm -rf %t &&
// RUN: clang-cc --html-diags=%t -checker-simple %s

void f0(int x) {
  int *p = &x;

  if (x > 10) {
    if (x == 22)
      p = 0;
  }

  *p = 10;
}


OpenPOWER on IntegriCloud