summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/constexpr-noexcept8.C
blob: 7dca56ae23c720edf7ac21355735a5bed9674ba0 (plain)
1
2
3
4
5
6
7
8
9
10
// 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{}), "");