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
Add __builtion_unreachable to vector::size(), vector::capacity()
[official-gcc.git]
/
gcc
/
testsuite
/
c-c++-common
/
analyzer
/
malloc-paths-6.c
blob
dfed45df15d21db5b2502e5063d2e48ca04abefc
1
/* { dg-skip-if "requires hosted libstdc++ for stdlib free" { ! hostedlib } } */
2
3
#include <stdlib.h>
4
5
void
test
(
void
*
ptr
)
6
{
7
void
*
q
;
8
q
=
ptr
;
9
free
(
ptr
);
10
free
(
q
);
/* { dg-warning "double-'free' of 'q'" } */
11
/* The above case requires us to handle equivalence classes in
12
state transitions. */
13
}