- initializing shorts with shorts instead of ints to avoid narrowing warnings
- Explicitly discard the result of value calls to avoid [[nodiscard]] warnings
Drive-by: testException from value test is duplicated in value_or test; remove the duplicate.
Paths
| Differential D141108
[libc++][test] Suppress MSVC warnings in std::expected tests ClosedPublic Authored by CaseyCarter on Jan 5 2023, 10:05 PM.
Details
Summary
Drive-by: testException from value test is duplicated in value_or test; remove the duplicate.
Diff Detail Event TimelineThis revision is now accepted and ready to land.Jan 5 2023, 11:10 PM CaseyCarter retitled this revision from [libc++][test] Suppress MSVC narrowing warnings to [libc++][test] Suppress MSVC warnings in std::expected tests. Comment Actions Merged as bdf7da280f624c53e6184d0410041220a9b405a7 (*sigh* someday I'll learn the right magic words to autoclose.)
Revision Contents
Diff 486757 libcxx/test/std/utilities/expected/expected.expected/ctor/ctor.inplace.pass.cpp
libcxx/test/std/utilities/expected/expected.expected/ctor/ctor.unexpect.pass.cpp
libcxx/test/std/utilities/expected/expected.expected/observers/value.pass.cpp
libcxx/test/std/utilities/expected/expected.expected/observers/value_or.pass.cpp
libcxx/test/std/utilities/expected/expected.void/ctor/ctor.unexpect.pass.cpp
|