diff options
Diffstat (limited to 'gcc/testsuite/gcc.dg/torture/pr58143-3.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/torture/pr58143-3.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/torture/pr58143-3.c b/gcc/testsuite/gcc.dg/torture/pr58143-3.c new file mode 100644 index 00000000000..23ae9cd39ce --- /dev/null +++ b/gcc/testsuite/gcc.dg/torture/pr58143-3.c @@ -0,0 +1,18 @@ +/* { dg-do run } */ +/* { dg-additional-options "-fstrict-overflow" } */ + +int a, b, c, d, e; + +int +main () +{ + for (b = 4; b > -30; b--) + for (; c;) + for (;;) + { + e = a > __INT_MAX__ - b; + if (d) + break; + } + return 0; +} |