1 extern int error(int); 2 3 int foo(int perr); 4 int foo(int perr) 5 { 6 int err = 0; 7 int rc = 0; 8 int j = 0; 9 int i = 1; 10 11 i && j++; 12 13 i-- && j; 14 15 i && j--; 16 17 if (j != 1) { 18 err = 1; 19 if (perr) 20 error(1); 21 } 22 23 if (err != 0) 24 rc = 1; 25 26 return rc; 27 } 28 29 /* 30 * check-name: kill-phi-ttsbb2 31 * check-description: 32 * Verify if OP_PHI usage is adjusted after successful try_to_simplify_bb() 33 * check-warning: this test is sensitive to details of code generation 34 * with proper bb packing (taking care of phi-nodes) it 35 * will be optimized away and test nothing. You have been warned. 36 * check-command: test-linearize $file 37 * check-output-ignore 38 * 39 * check-output-excludes: VOID 40 */