aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/analyzer/malloc-many-paths-1.c
blob: 82ad547a201654b79eeb4c0ebfdafd15222ab3dd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include <stdlib.h>

/* Ensure that we don't need to laboriously walk every path to get
   to the end of the function.  */

int test_1 (int n)
{
  int i, j, k;
  k = 0;
  for (int i = 0; i < n; i++)
    for (int j = 0; j < 1000; j++)
      k++;
  return k;
}