Sign in
gnu
/
gcc.git
/
refs/heads/master
/
.
/
gcc
/
testsuite
/
c-c++-common
/
analyzer
/
malloc-5.c
blob: af7aca8e307c452c0d522c6f7923ea157e89f175 [
file
] [
log
] [
blame
]
/* { dg-skip-if "requires hosted libstdc++ for stdlib malloc" { ! hostedlib } } */
#include
<stdlib.h>
void
test
(
void
)
{
void
*
p
=
malloc
(
sizeof
(
int
));
if
(!
p
)
return
;
int
*
q
=
(
int
*)
p
;
if
(!
q
)
return
;
free
(
q
);
}