mirror of
https://github.com/darlinghq/darling-libcxx.git
synced 2025-03-03 17:27:10 +00:00
[NFC] Reformat std::optional tests
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@346630 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
0a36edc613
commit
e754a7a9d2
@ -25,7 +25,7 @@ struct S {
|
||||
S(int v) : v_(v) {}
|
||||
S(const S &rhs) : v_(rhs.v_) {} // make it not trivially copyable
|
||||
int v_;
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
int main()
|
||||
|
@ -166,8 +166,8 @@ int main()
|
||||
test_reference_extension();
|
||||
}
|
||||
{
|
||||
constexpr std::optional<int> o1{4};
|
||||
constexpr std::optional<int> o2 = o1;
|
||||
static_assert( *o2 == 4, "" );
|
||||
constexpr std::optional<int> o1{4};
|
||||
constexpr std::optional<int> o2 = o1;
|
||||
static_assert( *o2 == 4, "" );
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user