diff --git a/tests.c b/tests.c index ac3e99a..fa08f9d 100644 --- a/tests.c +++ b/tests.c @@ -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() {