Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
constexpr-noexcept8.C
blob: 7dca56ae23c720edf7ac21355735a5bed9674ba0 [
file
] [
log
] [
blame
]
// PR c++/87603
// { dg-do compile { target c++11 } }
struct
Y
{
};
bool
operator
<(
Y a
,
Y b
)
{
return
false
;
}
constexpr
bool
operator
>(
Y a
,
Y b
)
{
return
false
;
}
static_assert
(!
noexcept
(
Y
{}
>
Y
{}),
""
);
static_assert
(!
noexcept
(
Y
{}
<
Y
{}),
""
);