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
jit: Fix Darwin bootstrap after r15-1699.
[official-gcc.git]
/
gcc
/
testsuite
/
c-c++-common
/
analyzer
/
leak-2.c
blob
d12850cdc6a547dca8806cbbedaa1b955da472d5
1
#include <stdlib.h>
2
#include
"../../gcc.dg/analyzer/analyzer-decls.h"
3
4
void
*
ptr
;
5
6
void
test
(
void
)
7
{
8
ptr
=
malloc
(
1024
);
9
ptr
=
NULL
;
/* { dg-warning "leak of 'ptr'" } */
10
}