Add monospace relational tests (refs #25)

This commit is contained in:
Peter Dimov committed 2021-03-08 03:01:21 +02:00
1 parent 6d19e6be68
commit 8ec0bf448a
4 files changed
+32

No files matched your search

+9
View File
@@ -86,6 +86,15 @@ int main()
STATIC_ASSERT( !(v1 <= v2) );
STATIC_ASSERT( !(v1 >= v2) );
}
{
constexpr variant<monostate> v1, v2;
STATIC_ASSERT( !(v1 < v2) );
STATIC_ASSERT( !(v1 > v2) );
STATIC_ASSERT( v1 <= v2 );
STATIC_ASSERT( v1 >= v2 );
}
}
#endif