Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
nullptr46.C
blob: 6c08eaa4d8fe170e17a26baefea4c79f25f26772 [
file
] [
log
] [
blame
]
// PR c++/101443
// { dg-do compile { target c++11 } }
// { dg-options "-O2" }
decltype
(
nullptr
)
foo
();
bool
bar
()
{
return
foo
()
>
nullptr
// { dg-error "ordered comparison" }
||
foo
()
<
nullptr
;
// { dg-error "ordered comparison" }
}