source: src/examples/gc_no_raii/bug-repro/blockers/explicit_cast.c @ c857ad3

ADTaaron-thesisarm-ehast-experimentalcleanup-dtorsdeferred_resndemanglerenumforall-pointer-decayjacob/cs343-translationjenkins-sandboxnew-astnew-ast-unique-exprnew-envno_listpersistent-indexerpthread-emulationqualifiedEnumresolv-newwith_gc
Last change on this file since c857ad3 was e8b15358, checked in by Thierry Delisle <tdelisle@…>, 8 years ago

new set of bug repros for resolver bugs

  • Property mode set to 100644
File size: 270 bytes
Line 
1
2#include <stdbool.h>
3#include <stdint.h>
4
5struct gcpointer_t
6{
7        intptr_t ptr;
8        struct gcpointer_t* next;
9};
10
11forall(otype T)
12struct gcpointer
13{
14        gcpointer_t internal;
15};
16
17forall(otype T)
18static inline gcpointer(T) gcmalloc()
19{
20    gcpointer(T) test;
21    return test;
22}
Note: See TracBrowser for help on using the repository browser.