File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
test/std/diagnostics/stacktrace/entry.cons Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ class _LIBCPP_EXPORTED_FROM_ABI stacktrace_entry : private __stacktrace::entry_b
62
62
return {};
63
63
}
64
64
[[nodiscard]] _LIBCPP_EXPORTED_FROM_ABI string source_file () const {
65
- if (__desc_ .has_value ()) {
65
+ if (__file_ .has_value ()) {
66
66
return {__file_->data (), __file_->size ()};
67
67
}
68
68
return {};
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ _LIBCPP_NO_TAIL_CALLS
27
27
int main (int , char **) {
28
28
static_assert (std::is_nothrow_copy_assignable_v<std::stacktrace_entry>);
29
29
30
- std::stacktrace_entry e1 = std::stacktrace::current ()[0 ];
30
+ auto & e1 = std::stacktrace::current ()[0 ];
31
31
std::stacktrace_entry e2 ;
32
32
static_assert (noexcept (e2 = e1 ));
33
33
e2 = e1 ;
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ _LIBCPP_NO_TAIL_CALLS
27
27
int main (int , char **) {
28
28
static_assert (std::is_nothrow_copy_constructible_v<std::stacktrace_entry>);
29
29
30
- std::stacktrace_entry e1 = std::stacktrace::current ()[0 ];
30
+ auto & e1 = std::stacktrace::current ()[0 ];
31
31
static_assert (noexcept (std::stacktrace_entry (e1 )));
32
32
std::stacktrace_entry e2 (e1 );
33
33
assert (e2 == e1 );
You can’t perform that action at this time.
0 commit comments