[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:
Louis Dionne 2018-11-12 01:38:30 +00:00
parent 0a36edc613
commit e754a7a9d2
2 changed files with 4 additions and 4 deletions

View File

@ -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()

View File

@ -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, "" );
}
}