source:
src/examples/gc_no_raii/bug-repro/push_back.c
@
90cedbdd
Last change on this file since 90cedbdd was df4aea7, checked in by , 8 years ago | |
---|---|
|
|
File size: 229 bytes |
Rev | Line | |
---|---|---|
[385c130] | 1 | #include <stddef.h> |
2 | #include <stdint.h> | |
3 | ||
[df4aea7] | 4 | #include "push_back.h" |
[385c130] | 5 | |
6 | typedef vector(intptr_t*, heap_allocator(intptr_t*)) worklist_t; | |
7 | ||
[df4aea7] | 8 | void test() |
[385c130] | 9 | { |
10 | worklist_t w; | |
[df4aea7] | 11 | if(!empty(&w)) |
12 | { | |
13 | intptr_t zero = 0; | |
14 | push_back(&w, &zero); | |
15 | } | |
[385c130] | 16 | } |
Note: See TracBrowser
for help on using the repository browser.