// BEGIN mycpp output #include "mycpp/runtime.h" GLOBAL_STR(str0, "food"); namespace test_small_str { // forward declare } // forward declare namespace test_small_str namespace test_small_str { // declare BigStr* f(BigStr* s); void run_tests(); void run_benchmarks(); } // declare namespace test_small_str namespace test_small_str { // define BigStr* f(BigStr* s) { return s->at(1)->upper(); } void run_tests() { BigStr* a = nullptr; a = str0; print(a->upper()); print(f(a)); } void run_benchmarks() { ; // pass } } // define namespace test_small_str