summaryrefslogtreecommitdiff
path: root/support/regression/tests/bug-485362.c
blob: 66ca3602fdef5b70b08766f7a9d778a0eaf6db18 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/** Shows segfault.
    type: int
 */
#include <testfwk.h>

void
spoil({type} f)
{
  UNUSED(f);
}

void
testDivBySelf(void)
{
  volatile {type} left, result;

  left = 17;
  result = left/left;

  spoil(result);
}