Imported Upstream version 2.9.0
[debian/cc1111] / support / regression / tests / bug-485362.c
1 /** Shows segfault.
2     type: int
3  */
4 #include <testfwk.h>
5
6 void
7 spoil({type} f)
8 {
9   UNUSED(f);
10 }
11
12 void
13 testDivBySelf(void)
14 {
15   volatile {type} left, result;
16
17   left = 17;
18   result = left/left;
19
20   spoil(result);
21 }