Add more tests for optional<const T>

llvm-svn: 285384
This commit is contained in:
Eric Fiselier
2016-10-28 06:40:29 +00:00
parent 53091bf361
commit 64428acf41
6 changed files with 29 additions and 0 deletions

View File

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