proper div by zero in test case

This commit is contained in:
shockrah 2019-11-05 14:42:53 -08:00
parent 847a4090b8
commit b4782bd919

View File

@ -5,9 +5,8 @@
void divide_by_zero() {
// here we can test the divide by zero without gcc noticing
int x = 0;
int y = 5;
int z = y/x;
__asm__("mov eax, 0");
__asm__("div al");
}
void test_serial_write() {