~pixelherodev/zyg

ref: 27187f8391f97f3e6f69df47ee5ad9337d9975a0 zyg/test/1.zig -rw-r--r-- 146 bytes
27187f83Noam Preil fixes 5 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
export const start = fn () noreturn{
	while (true) {}
};

const f = fn() bool{
	return false;
};

test {
	if(f()){
		@panic("Test failed!");
	}
}