Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
ext
/
pr93998.C
blob: 766c331773422159c0e8be149881411eaf260e3e [
file
] [
log
] [
blame
]
// PR c++/93998
// { dg-do compile { target c++11 } }
struct
C
{
constexpr
bool
operator
==
(
C x
)
const
noexcept
{
return
v
==
x
.
v
;
}
int
v
;
};
int
foo
(
const
C a
,
const
C b
,
bool
c
)
{
return
__builtin_expect
(!!(
a
==
b
||
c
),
1
)
?
0
:
1
;
}