Mercurial > hg > CbC > CbC_gcc
comparison gcc/testsuite/gcc.dg/pr56436.c @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
68:561a7518be6b | 111:04ced10e8804 |
---|---|
1 /* PR tree-optimization/56426 */ | |
2 /* { dg-do compile } */ | |
3 /* { dg-options "-O2" } */ | |
4 | |
5 int a, *c; | |
6 | |
7 void | |
8 f (void) | |
9 { | |
10 int b = 0; | |
11 | |
12 for (a = 0;; a++) | |
13 if (--b) | |
14 { | |
15 if (a) | |
16 lbl: | |
17 a++; | |
18 | |
19 c = &b; | |
20 goto lbl; | |
21 } | |
22 } |