* ubsan.c (ubsan_expand_null_ifn): Use _v1 suffixed type mismatch
[official-gcc.git] / gcc / testsuite / c-c++-common / Wlogical-op-2.c
blob6360ef98090e2d2be682ba7f034bfe6cea343030
1 /* PR c/80525 */
2 /* { dg-do compile } */
3 /* { dg-options "-Wlogical-op" } */
5 int
6 fn (int a, int b)
8 if ((a + 1) && (a + 1)) /* { dg-warning "logical .and. of equal expressions" } */
9 return a;
10 if ((a + 1) || (a + 1)) /* { dg-warning "logical .or. of equal expressions" } */
11 return b;