<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/73800>73800</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
Changing borrowed range status of test class does not change outcome of test (std::ranges::transform_view)
</td>
</tr>
<tr>
<th>Labels</th>
<td>
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
hawkinsw
</td>
</tr>
</table>
<pre>
In the CTAD tests for `std::ranges::transform_view`, changing whether the `BorrowedRange` test class is a actually borrowed does not seem to change the outcome of the tests. In other words, if I remove the `enable_borrowed_range` on lines 37 and 38 [1], the test still seems to pass. I am _sure_ that I am missing something, but would love to be educated on what that is!
Once I understand the problem, I would absolutely *love* to help fix it!
[1] https://github.com/llvm/llvm-project/blob/9b192596ded4982ea360e70f723f9d05dc456ec0/libcxx/test/std/ranges/range.adaptors/range.transform/ctad.compile.pass.cpp#L37
> Note: This situation appears to happen for the `site::ranges::join_view`, too, but I haven't confirmed that locally.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyUVEGP8yYQ_TX4MmqEIbbjgw_Z3VqKVLVS9d0jbMYxXzFYMN7s_vsKkuymPbWXBCN482bee6gYzcUhdqx6YdVboTaafehmdf3LuHgtBq8_u5MDmhFefxzfgDBShMkHYDWPpJk8MnkMyl0w3tYUlIuTD8v53eCV1ZyJVxhn5S7GXeA6I80YMiCr-YsPwV9R_5kAWM0zPoxWxQgmggI10qas_YThfhK0xwjOE0TEBcjfsDEj-o1GvyD4KX9msjs4OfC56NUHHRMdM8EJAi7-HR9M0KnB4vlR5hwejLwDaxxGkA0op0EegFUvJaveEtKjDEQy1mZOMZFaVUyVQS1wjlvAM9Cs6LaxmBjTLKJfkGbjLglo2AiufrMabGblYUBAvY2KUCcS13Q_g5jIRMn4G-PH2-8fbkQ4weY0hkiJZKK1Bj9YXBL46Q6thujtRmg_gYljKsTEMdWa0a4wmQ8wxEQJz-D3ZmEmWrPEomeivxiat2E3-oWJ3tr3x98va_A_cSQm-sH6gYm-HcpWVG2tUe_bg0Ala44Nnxohp1bzSo_7qsaRJwAzjB8fTPRpokz0yV-iv5vrvtgprVby4Xvjy3BM9CMpnUitxuIuazCuKxPyN9n8oyf5K_zuCZk8wo_ZRIiGNkXGO1DriipkDee0dtnsd5NEk-_8y_E_vXHPZifvH4qeYFbv6JhoCEbvJhMW1DcVrR-TsXfPvArdSd3KVhXYlQ0vRd3WvCzmbq_5IFWjcKikrktRyVqXbakO5WEs21IXphNcyLIUbbmvpCh3e1FNtcL9oHlTqXpie46LMnaXVNr5cClMjBt2jTxwXlg1oI2PVyB0Wcphu0S259akFH1dI0MWu9dHoL9ymScCkRRtMQfwO8lfkb1H9Tmm6RQTh__ylIi22ILt_rcRc6PJL7nXvwMAAP__uPWf3g">