Make sure the division by zero is not optimized away.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13799 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -57,11 +57,12 @@ crash_segv2()
|
|||||||
strcmp(str, "Test");
|
strcmp(str, "Test");
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static int
|
||||||
crash_div()
|
crash_div()
|
||||||
{
|
{
|
||||||
int i = 0;
|
int i = 0;
|
||||||
i = 1 / i;
|
i = 1 / i;
|
||||||
|
return i;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|||||||
Reference in New Issue
Block a user