| 1 |
// PR c++/93998 |
| 2 |
// { dg-do compile { target c++11 } } |
| 3 |
|
| 4 |
struct C |
| 5 |
{ |
| 6 |
constexpr bool operator== (C x) const noexcept { return v == x.v; } |
| 7 |
int v; |
| 8 |
}; |
| 9 |
|
| 10 |
int |
| 11 |
foo (const C a, const C b, bool c) |
| 12 |
{ |
| 13 |
return __builtin_expect (!!(a == b || c), 1) ? 0 : 1; |
| 14 |
} |