~pixelherodev/zyg

ref: 7dccbd7d9dc502f2cd859c4c7ebd84a0d8f3acd7 zyg/test/1.zig -rw-r--r-- 146 bytes
7dccbd7dNoam Preil merge 4 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!");
	}
}