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:
Ingo Weinhold 2005-07-21 23:53:57 +00:00
parent 0e2218e5b9
commit 5e14f5dae0
1 changed files with 2 additions and 1 deletions

View File

@ -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