aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr44545.c
blob: 37f75f16f999297c7061942348ee4e273cad8282 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* { dg-do compile } */
/* { dg-options "-O2 -fnon-call-exceptions -ftrapv -fexceptions" } */
/* { dg-require-effective-target exceptions } */
void
DrawChunk(int *tabSize, int x) 
{
  const int numEnds = 10;
  int ends[numEnds + 2];
  if (*tabSize > 0) {
      x -= 5;
      x = (x + *tabSize) / *tabSize;
  }
}