proper div by zero in test case
This commit is contained in:
parent
847a4090b8
commit
b4782bd919
5
tests.c
5
tests.c
@ -5,9 +5,8 @@
|
|||||||
|
|
||||||
void divide_by_zero() {
|
void divide_by_zero() {
|
||||||
// here we can test the divide by zero without gcc noticing
|
// here we can test the divide by zero without gcc noticing
|
||||||
int x = 0;
|
__asm__("mov eax, 0");
|
||||||
int y = 5;
|
__asm__("div al");
|
||||||
int z = y/x;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void test_serial_write() {
|
void test_serial_write() {
|
||||||
|
Loading…
Reference in New Issue
Block a user