2017-09-26 Thomas Koenig <tkoenig@gcc.gnu.org>
[official-gcc.git] / gcc / testsuite / gcc.dg / pr44545.c
blob51983ef76b977537716ce79511c9e0f3329fdc06
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fnon-call-exceptions -ftrapv -fexceptions" } */
3 int
4 DrawChunk(int *tabSize, int x)
6 const int numEnds = 10;
7 int ends[numEnds + 2];
8 if (*tabSize > 0) {
9 x -= 5;
10 x = (x + *tabSize) / *tabSize;