| 1 |
// PR c++/101443 |
| 2 |
// { dg-do compile { target c++11 } } |
| 3 |
// { dg-options "-O2" } |
| 4 |
|
| 5 |
decltype(nullptr) foo (); |
| 6 |
|
| 7 |
bool |
| 8 |
bar () |
| 9 |
{ |
| 10 |
return foo () > nullptr // { dg-error "ordered comparison" } |
| 11 |
|| foo () < nullptr; // { dg-error "ordered comparison" } |
| 12 |
} |