diff options
Diffstat (limited to 'gcc/testsuite/gcc.dg/pr44545.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/pr44545.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/pr44545.c b/gcc/testsuite/gcc.dg/pr44545.c new file mode 100644 index 000000000..51983ef76 --- /dev/null +++ b/gcc/testsuite/gcc.dg/pr44545.c @@ -0,0 +1,13 @@ +/* { dg-do compile } */ +/* { dg-options "-O2 -fnon-call-exceptions -ftrapv -fexceptions" } */ +int +DrawChunk(int *tabSize, int x) +{ + const int numEnds = 10; + int ends[numEnds + 2]; + if (*tabSize > 0) { + x -= 5; + x = (x + *tabSize) / *tabSize; + } +} + |