aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/analyzer/call-summaries-1.c
blob: a64b230cef32e23bf403b349b2d4c94d0dee4b7e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* { dg-additional-options "-fanalyzer-call-summaries" } */

#include <stdlib.h>

void calls_free (void *p)
{
  free (p); /* { dg-warning "double-'free' of 'p'" } */
}

void test (void *q)
{
  calls_free (q);
  calls_free (q);
}