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 8
8
9
9
// REQUIRES: std-at-least-c++17
10
10
11
+ // No diagnostic gets emitted when we build with modules.
12
+ // XFAIL: clang-modules-build
13
+
11
14
// <tuple>
12
15
13
16
// template <class T, class Tuple> constexpr T make_from_tuple(Tuple&&);
16
19
#include < tuple>
17
20
#include < utility>
18
21
22
+ #include " test_macros.h"
23
+
19
24
void test () {
20
25
// expected-error@*:* {{static assertion failed}}
21
26
22
27
// 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}}
25
30
#else
26
- // expected-warning@* :* {{returning reference to local temporary object}}
31
+ // expected-warning@tuple :* {{returning reference to local temporary object}}
27
32
#endif
28
33
std::ignore = std::make_from_tuple<const int &>(std::tuple<char >{});
29
34
}
You can’t perform that action at this time.
0 commit comments