gcc/testsuite/gcc.c-torture/compile/pr109604-2.c
raw| 1 | /* This used to ICE after PHI-OPT because of the "empty block" and diamond form bbs |
| 2 | was not checking to make sure each bbs were only coming from the one bb. */ |
| 3 | |
| 4 | struct { |
| 5 | int second; |
| 6 | } selectPlayer_playerRes; |
| 7 | int selectPlayer_playerRes_0; |
| 8 | int selectPlayer() { |
| 9 | if (selectPlayer_playerRes_0 && selectPlayer_playerRes.second >= 0) |
| 10 | return selectPlayer_playerRes.second; |
| 11 | else |
| 12 | return -1; |
| 13 | } |