(root)/
gcc-13.2.0/
gcc/
testsuite/
g++.dg/
warn/
Wlogical-op-3.C
// PR c++/101592
// { dg-do compile { target c++11 } }
// { dg-options "-O2 -Wlogical-op" }

decltype(nullptr) foo ();

bool
bar ()
{
  return foo () > nullptr // { dg-error "ordered comparison" }
    || foo () < nullptr; // { dg-error "ordered comparison" }
}