#include "std/io.toc", io; main ::= fn() { defer io.puts("deferred from main()"); for i := 1..10 { defer io.puts("deferred from for"); io.puti(i); if i == 2 { defer io.puts("deferred from if"); return; } } io.puts("end of main()"); }