source: src/examples/gc_no_raii/bug-repro/assert.c @ 29ad0ac

ADTaaron-thesisarm-ehast-experimentalcleanup-dtorsctordeferred_resndemanglerenumforall-pointer-decaygc_noraiijacob/cs343-translationjenkins-sandboxmemorynew-astnew-ast-unique-exprnew-envno_listpersistent-indexerpthread-emulationqualifiedEnumresolv-newwith_gc
Last change on this file since 29ad0ac was 08a40fd, checked in by Thierry Delisle <tdelisle@…>, 9 years ago

segfault in translator

  • Property mode set to 100644
File size: 258 bytes
RevLine 
[08a40fd]1struct gc_object_header{
2 int size;
3};
4
5struct gc_state;
6
7inline _Bool needs_collect(gc_state* state) {
8 return state->used_space > 0;
9}
10
11struct gc_object_header* gc_get_object_for_ref();
12
13inline gc_object_header* gc_get_object_ptr(void* ptr)
14{
15 return 0;
16}
Note: See TracBrowser for help on using the repository browser.