2 // { dg-do compile { target c++11 } }
4 struct A { int e[2]; };
5 constexpr A a { { 0, 1 } };
6 static_assert (a.e + 1 != a.e, "");
7 static_assert (a.e != a.e + 1, "");
8 static_assert (a.e + 2 != a.e, "");
9 static_assert (a.e != a.e + 2, "");
10 static_assert (a.e + 1 > a.e, "");
11 static_assert (a.e < a.e + 1, "");
12 static_assert (a.e + 2 > a.e, "");
13 static_assert (a.e < a.e + 2, "");
14 static_assert (a.e + 1 >= a.e, "");
15 static_assert (a.e <= a.e + 1, "");
16 static_assert (a.e + 2 >= a.e, "");
17 static_assert (a.e <= a.e + 2, "");