summaryrefslogtreecommitdiff
path: root/unittests/Support/ErrorOrTest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'unittests/Support/ErrorOrTest.cpp')
-rw-r--r--unittests/Support/ErrorOrTest.cpp11
1 files changed, 0 insertions, 11 deletions
diff --git a/unittests/Support/ErrorOrTest.cpp b/unittests/Support/ErrorOrTest.cpp
index 6cef4fc212..a8608860b8 100644
--- a/unittests/Support/ErrorOrTest.cpp
+++ b/unittests/Support/ErrorOrTest.cpp
@@ -53,17 +53,6 @@ TEST(ErrorOr, Types) {
EXPECT_EQ(3, **t3());
#endif
}
-
-struct B {};
-struct D : B {};
-
-TEST(ErrorOr, Covariant) {
- ErrorOr<B*> b(ErrorOr<D*>(0));
-
-#if LLVM_HAS_CXX11_STDLIB
- ErrorOr<std::unique_ptr<B> > b1(ErrorOr<std::unique_ptr<D> >(0));
-#endif
-}
} // end anon namespace
struct InvalidArgError {