Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
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
{}),
""
);