Index: src/examples/gc_no_raii/bug-repro/realloc.c
===================================================================
--- src/examples/gc_no_raii/bug-repro/realloc.c	(revision 220ca4a36da7d029b2048ab30c8d04727c0e080a)
+++ src/examples/gc_no_raii/bug-repro/realloc.c	(revision 220ca4a36da7d029b2048ab30c8d04727c0e080a)
@@ -0,0 +1,13 @@
+void* realloc(void*, unsigned long int);
+
+forall(otype T)
+struct wrap
+{
+	T* val;
+};
+
+forall(otype T)
+static inline void realloc(wrap(T) *const this, unsigned long int size)
+{
+	this->val = (T*)realloc((void*)this->val, size);
+}
Index: src/examples/gc_no_raii/bug-repro/return_template.c
===================================================================
--- src/examples/gc_no_raii/bug-repro/return_template.c	(revision 220ca4a36da7d029b2048ab30c8d04727c0e080a)
+++ src/examples/gc_no_raii/bug-repro/return_template.c	(revision 220ca4a36da7d029b2048ab30c8d04727c0e080a)
@@ -0,0 +1,12 @@
+forall(otype T)
+struct wrap
+{
+	T value;
+};
+
+forall(otype T)
+static inline wrap(T) test()
+{
+	wrap(T) tester;
+	return tester;
+}
Index: src/examples/gc_no_raii/bug-repro/slow_malloc.c
===================================================================
--- src/examples/gc_no_raii/bug-repro/slow_malloc.c	(revision 220ca4a36da7d029b2048ab30c8d04727c0e080a)
+++ src/examples/gc_no_raii/bug-repro/slow_malloc.c	(revision 220ca4a36da7d029b2048ab30c8d04727c0e080a)
@@ -0,0 +1,20 @@
+#include <stdlib>
+
+forall(otype T)
+struct heap_allocator
+{
+	T* storage;
+	size_t capacity;
+};
+
+struct card_table_t
+{
+	unsigned long int count;
+	void* cards_start[1000];
+};
+
+int main(int argc, char const *argv[])
+{
+	card_table_t* t = (card_table_t*)malloc(sizeof(card_table_t));
+	return 0;
+}
