aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/compile/pr109604-2.c
blob: 29db0b5c2452470a70e4841da55db4eeccbd1817 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* This used to ICE after PHI-OPT because of the "empty block" and diamond form bbs
   was not checking to make sure each bbs were only coming from the one bb. */

struct {
  int second;
} selectPlayer_playerRes;
int selectPlayer_playerRes_0;
int selectPlayer() {
  if (selectPlayer_playerRes_0 && selectPlayer_playerRes.second >= 0)
    return selectPlayer_playerRes.second;
  else
    return -1;
}