Lines Matching refs:both
44 static constexpr ptid_t both = ptid_t (1, 2, 2);
58 static_assert (both.pid () == 1, "both's pid is right");
65 static_assert (both.lwp_p (), "both's lwp_p is right");
72 static_assert (both.lwp () == 2, "both's lwp is right");
79 static_assert (both.tid_p (), "both's tid_p is right");
86 static_assert (both.tid () == 2, "both's tid is right");
93 static_assert (!both.is_pid (), "both isn't a pid");
102 static_assert (both == ptid_t (1, 2, 2), "both operator== is right");
109 static_assert (both != lwp, "both isn't equal to lwp");
110 static_assert (both != tid, "both isn't equal to tid");
117 static_assert (both.matches (minus_one), "both matches minus one");
124 static_assert (both.matches (pid), "both matches pid");
128 static_assert (!ptid_t (2, 2, 2).matches (pid), "other both doesn't match pid");
135 static_assert (!both.matches (lwp), "both doesn't match lwp");
141 static_assert (!both.matches (tid), "both doesn't match tid");
144 static_assert (!pid.matches (both), "pid doesn't match both");
145 static_assert (!lwp.matches (both), "lwp doesn't match both");
146 static_assert (!tid.matches (both), "tid doesn't match both");
147 static_assert (both.matches (both), "both matches both");
148 static_assert (!ptid_t (2, 2, 2).matches (both),
149 "other both doesn't match both");