PR tree-optimization/81303
[official-gcc.git] / gcc / testsuite / gcc.dg / pr68412-2.c
blobbe1dcfa5e26e49306853c4b4735c16ccb8f92d89
1 /* PR c/68412 */
2 /* { dg-do compile } */
3 /* { dg-options "-Wall -Wextra" } */
5 int
6 fn1 (int i)
8 return ({ i; }) == ({ i; }); /* { dg-warning "self-comparison always evaluates to true" } */
11 int
12 fn2 (int i)
14 return ({ i + 1; }) != ({ i + 1; }); /* { dg-warning "self-comparison always evaluates to false" } */