Add more tests for optional<const T>
llvm-svn: 285384
This commit is contained in:
@@ -136,6 +136,11 @@ int main()
|
||||
{
|
||||
test<int>();
|
||||
test<int>(3);
|
||||
{
|
||||
optional<const int> o(42);
|
||||
optional<const int> o2(std::move(o));
|
||||
assert(*o2 == 42);
|
||||
}
|
||||
{
|
||||
using T = TestTypes::TestType;
|
||||
T::reset();
|
||||
|
||||
Reference in New Issue
Block a user