diff options
Diffstat (limited to 'gcc-4.9/gcc/testsuite/gcc.dg/torture/pr54458.c')
-rw-r--r-- | gcc-4.9/gcc/testsuite/gcc.dg/torture/pr54458.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/gcc-4.9/gcc/testsuite/gcc.dg/torture/pr54458.c b/gcc-4.9/gcc/testsuite/gcc.dg/torture/pr54458.c new file mode 100644 index 000000000..3d2e12fc2 --- /dev/null +++ b/gcc-4.9/gcc/testsuite/gcc.dg/torture/pr54458.c @@ -0,0 +1,20 @@ +/* { dg-do compile } */ + +unsigned int a, b, c; + +void +foo (unsigned int x) +{ + do + { + if (a == 0 ? 1 : 1 % a) + for (; b; b--) + lab:; + else + while (x) + ; + if (c) + goto lab; + } + while (1); +} |