#include "memory.cc" #include "common.cc" #include static const char* SOURCE = R"( #include int main() { return EXIT_FAILURE; } )"; static const String SOURCE_STRING = { (u8*)SOURCE, strlen(SOURCE) }; int main() { String source; slice_copy(heap_allocator(), &SOURCE_STRING, &source); slice_write(&source, stdout); fflush(stdout); slice_deallocate(heap_allocator(), &source); }