repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Testsuite: fix analyzer tests on Darwin
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
analyzer
/
call-summaries-1.c
blob
a64b230cef32e23bf403b349b2d4c94d0dee4b7e
1
/* { dg-additional-options "-fanalyzer-call-summaries" } */
2
3
#include <stdlib.h>
4
5
void
calls_free
(
void
*
p
)
6
{
7
free
(
p
);
/* { dg-warning "double-'free' of 'p'" } */
8
}
9
10
void
test
(
void
*
q
)
11
{
12
calls_free
(
q
);
13
calls_free
(
q
);
14
}