os_kernel_lab/labcodes_answer/lab6_result/user/divzero.c
2014-08-20 15:42:20 +08:00

12 lines
136 B
C

#include <stdio.h>
#include <ulib.h>
int zero;
int
main(void) {
cprintf("value is %d.\n", 1 / zero);
panic("FAIL: T.T\n");
}