diff options
Diffstat (limited to 'gcc-4.9/gcc/testsuite/gcc.dg/torture/pr55270.c')
-rw-r--r-- | gcc-4.9/gcc/testsuite/gcc.dg/torture/pr55270.c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/gcc-4.9/gcc/testsuite/gcc.dg/torture/pr55270.c b/gcc-4.9/gcc/testsuite/gcc.dg/torture/pr55270.c new file mode 100644 index 000000000..0b7f906d0 --- /dev/null +++ b/gcc-4.9/gcc/testsuite/gcc.dg/torture/pr55270.c @@ -0,0 +1,22 @@ +/* { dg-do compile } */ + +unsigned a, b, c; + +void f(void) +{ + for(; a; a++) + { + long *p1 = (long *)&b; + + if(*p1) + return; + + if(b && (*p1 = b) || c && ++*p1) + { + unsigned *p2 = &b; + + for(*p2 = 0; *p2 < 1;) + for(; b; b++); + } + } +} |