os_kernel_lab/labcodes_answer/lab6_result/user/divzero.c

12 lines
136 B
C
Raw Normal View History

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