Sign in
gnu
/
gcc.git
/
refs/heads/master
/
.
/
gcc
/
testsuite
/
c-c++-common
/
analyzer
/
malloc-ipa-4.c
blob: 535979c7e0a6951a859500d170172d71f0e682b1 [
file
] [
log
] [
blame
]
/* { dg-skip-if "requires hosted libstdc++ for stdlib free" { ! hostedlib } } */
#include
<stdlib.h>
static
void
calls_free
(
int
*
q
)
{
free
(
q
);
}
void
test
(
void
*
p
)
{
calls_free
((
int
*)
p
);
free
(
p
);
/* { dg-warning "double-'free' of 'p'" } */
}