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:
parent
0e2218e5b9
commit
5e14f5dae0
@ -57,11 +57,12 @@ crash_segv2()
|
||||
strcmp(str, "Test");
|
||||
}
|
||||
|
||||
static void
|
||||
static int
|
||||
crash_div()
|
||||
{
|
||||
int i = 0;
|
||||
i = 1 / i;
|
||||
return i;
|
||||
}
|
||||
|
||||
static void
|
||||
|
Loading…
Reference in New Issue
Block a user