aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/analyzer/paths-5.c
blob: 21aa23067c1a2ac259beccfa8e209324772dc1d0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#include "analyzer-decls.h"

void test (int *p, int n)
{
  int i;
  __analyzer_dump_exploded_nodes (0); /* { dg-warning "1 processed enode" } */
  for (i = 0; i < n; i++)
    {
      p[i] = i; /* { dg-bogus "uninitialized" } */
      __analyzer_dump_exploded_nodes (0); /* { dg-warning "2 processed enodes" } */
    }
}