32#if !defined (_RWSTD_NO_EXT_CXX_0X) \
33 && !defined (_RWSTD_NO_RVALUE_REFERENCES)
44 rw_info (0, __FILE__, __LINE__,
"operator==");
46 std::tuple<> nt1, nt2;
48 rw_assert (nt1 == nt1, __FILE__, __LINE__,
49 "nt1 == nt1, got false, expected true");
53 rw_assert (expr, __FILE__, __LINE__, #expr \
54 "; got %b, expected %b", !(expr), expr)
58 std::tuple<int> it1 (1), it2 (1), it3 (2);
64 std::tuple<UserDefined> ut1 (ud1), ut2 (ud1), ut3 (ud2);
69 std::tuple<bool, char, int, double, void*, UserDefined>
70 bt1 (
true,
'a', 255, 3.14159, &nt1, ud1),
71 bt2 (
true,
'a', 255, 3.14159, &nt1, ud1),
72 bt3 (
true,
'a', 256, 3.14159, &nt1, ud1);
83 rw_info (0, __FILE__, __LINE__,
"operator<");
85 std::tuple<> nt1, nt2;
89 std::tuple<int> it1 (1), it2 (2);
94 std::tuple<UserDefined> ut1 (ud1), ut2 (ud2);
98 std::tuple<long, const char*> pt1 (1234L,
"string");
100 std::tuple<long, const char*> pt2 (1235L,
"string");
102 std::tuple<long, const char*> pt3 (1234L,
"strings");
105 std::tuple<bool, char, int, double, void*, UserDefined>
106 bt1 (
true,
'a', 255, 3.14159, &nt1, ud1),
107 bt2 (
true,
'a', 256, 3.14159, &nt1, ud1),
108 bt3 (
true,
'a', 255, 3.14159, &nt1, ud2);
109 rw_assert (!(bt1 < bt1), __FILE__, __LINE__,
110 "bt1 < bt1, got true, expected false");
111 rw_assert (bt1 < bt2, __FILE__, __LINE__,
112 "bt1 < bt2, got false, expected true");
113 rw_assert (bt1 < bt3, __FILE__, __LINE__,
114 "bt1 < bt3, got false, expected true");
139#if defined (_RWSTD_NO_RVALUE_REFERENCES)
142 "test disabled because _RWSTD_NO_EXT_CXX_OX is defined");
144#elif defined (_RWSTD_NO_RVALUE_REFERENCES)
147 "test disabled because _RWSTD_NO_RVALUE_REFERENCES is "
160 return rw_test (argc, argv, __FILE__,
161 "[tuple.rel]",
"20.3.1.6 Relational operators",
void run_test(const ForwardIterator &dummy, T *, Predicate *pred)
_TEST_EXPORT int rw_test(int argc, char *argv[], const char *filename, const char *clause, const char *comment, int(*testfun)(int, char **), const char *optspec,...)
_TEST_EXPORT int rw_info(int, const char *, int, const char *,...)
_TEST_EXPORT int rw_assert(int, const char *, int, const char *,...)
_TEST_EXPORT int rw_warn(int, const char *, int, const char *,...)