27-rt.ha (326B)
1 // tests for the test runtime itself 2 3 use rt; 4 5 fn compile() void = { 6 assert(rt::compile(" 7 fn test() void = { 8 void; 9 };" 10 ) as rt::exited == rt::EXIT_SUCCESS); 11 assert(rt::compile(" 12 fn test() void = { 13 let a: int = [1, 2, 3]; 14 };" 15 ) as rt::exited != rt::EXIT_SUCCESS); 16 }; 17 18 export fn main() void = { 19 compile(); 20 };