aboutsummaryrefslogtreecommitdiff
path: root/tests/programs/bareexit.zc
blob: 1cede8399179b1040a77f911e04258bf1155092f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
namespace;
include rt;

// exit(3) must stop the machine before the next print.
fn main() {
	rt.put_s("bye\n");
	rt.syscall(7, 3, 0, 0);
	rt.put_s("still\n");
	return 0;
}