File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed
libcxx/test/std/utilities/tuple/tuple.tuple/tuple.apply Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change 88
99// REQUIRES: std-at-least-c++17
1010
11+ // No diagnostic gets emitted when we build with modules.
12+ // XFAIL: clang-modules-build
13+
1114// <tuple>
1215
1316// template <class T, class Tuple> constexpr T make_from_tuple(Tuple&&);
1619#include < tuple>
1720#include < utility>
1821
22+ #include " test_macros.h"
23+
1924void test () {
2025 // expected-error@*:* {{static assertion failed}}
2126
2227 // Turns to an error since C++26 (Disallow Binding a Returned Glvalue to a Temporary https://wg21.link/P2748R5).
23- #if _LIBCPP_STD_VER >= 26
24- // expected-error@* :* {{returning reference to local temporary object}}
28+ #if TEST_STD_VER >= 26
29+ // expected-error@tuple :* {{returning reference to local temporary object}}
2530#else
26- // expected-warning@* :* {{returning reference to local temporary object}}
31+ // expected-warning@tuple :* {{returning reference to local temporary object}}
2732#endif
2833 std::ignore = std::make_from_tuple<const int &>(std::tuple<char >{});
2934}
You can’t perform that action at this time.
0 commit comments