From f4cde83d3a284a53869baa12d9eabe0342678e93 Mon Sep 17 00:00:00 2001 From: Chandler Carruth Date: Sat, 1 Mar 2014 10:57:19 +0000 Subject: [C++11] Remove LLVM_HAS_CXX11_STDLIB now that it is just on. llvm-svn: 202587 --- llvm/unittests/Support/ErrorOrTest.cpp | 6 ------ 1 file changed, 6 deletions(-) (limited to 'llvm/unittests/Support/ErrorOrTest.cpp') diff --git a/llvm/unittests/Support/ErrorOrTest.cpp b/llvm/unittests/Support/ErrorOrTest.cpp index 7a0c31f484d..18ce507b889 100644 --- a/llvm/unittests/Support/ErrorOrTest.cpp +++ b/llvm/unittests/Support/ErrorOrTest.cpp @@ -36,11 +36,9 @@ TEST(ErrorOr, SimpleValue) { #endif } -#if LLVM_HAS_CXX11_STDLIB ErrorOr > t3() { return std::unique_ptr(new int(3)); } -#endif TEST(ErrorOr, Types) { int x; @@ -48,10 +46,8 @@ TEST(ErrorOr, Types) { *a = 42; EXPECT_EQ(42, x); -#if LLVM_HAS_CXX11_STDLIB // Move only types. EXPECT_EQ(3, **t3()); -#endif } struct B {}; @@ -61,9 +57,7 @@ TEST(ErrorOr, Covariant) { ErrorOr b(ErrorOr(0)); b = ErrorOr(0); -#if LLVM_HAS_CXX11_STDLIB ErrorOr > b1(ErrorOr >(0)); b1 = ErrorOr >(0); -#endif } } // end anon namespace -- cgit v1.2.3