Add __builtion_unreachable to vector::size(), vector::capacity()
[official-gcc.git] / gcc / testsuite / c-c++-common / analyzer / malloc-paths-6.c
blobdfed45df15d21db5b2502e5063d2e48ca04abefc
1 /* { dg-skip-if "requires hosted libstdc++ for stdlib free" { ! hostedlib } } */
3 #include <stdlib.h>
5 void test (void *ptr)
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. */