1 /* PR c/68412 */ 2 /* { dg-do compile } */ 3 /* { dg-options "-Wall -Wextra" } */ 4 5 int fn1(int i)6fn1 (int i) 7 { 8 return ({ i; }) == ({ i; }); /* { dg-warning "self-comparison always evaluates to true" } */ 9 } 10 11 int fn2(int i)12fn2 (int i) 13 { 14 return ({ i + 1; }) != ({ i + 1; }); /* { dg-warning "self-comparison always evaluates to false" } */ 15 } 16