mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-16 18:31:14 -03:00
Correct failure to set 'filled' flag in maybe_t constructors
This commit is contained in:
@@ -4472,6 +4472,13 @@ void test_maybe() {
|
||||
do_test(m2.missing_or_empty());
|
||||
m2 = none();
|
||||
do_test(m2.missing_or_empty());
|
||||
|
||||
maybe_t<std::string> m0 = none();
|
||||
maybe_t<std::string> m3("hi");
|
||||
maybe_t<std::string> m4 = m3;
|
||||
do_test(m4 && *m4 == "hi");
|
||||
maybe_t<std::string> m5 = m0;
|
||||
do_test(!m5);
|
||||
}
|
||||
|
||||
void test_layout_cache() {
|
||||
|
||||
Reference in New Issue
Block a user