From: Benjamin Kramer Date: Sun, 20 Jan 2013 21:52:27 +0000 (+0000) Subject: Disable test that fails due to lack of std::true_type in C++03. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=c052d5b047312195d2722c13af5fdf6d2ebe6bae;p=oota-llvm.git Disable test that fails due to lack of std::true_type in C++03. Michael, can this test be ported to C++03? git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@172996 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/unittests/Support/ErrorOrTest.cpp b/unittests/Support/ErrorOrTest.cpp index 1f80aa0cdf8..8ce7160ba36 100644 --- a/unittests/Support/ErrorOrTest.cpp +++ b/unittests/Support/ErrorOrTest.cpp @@ -56,6 +56,7 @@ struct InvalidArgError { std::string ArgName; }; +#if LLVM_HAS_CXX11_STDLIB namespace llvm { template<> struct ErrorOrUserDataTraits : std::true_type { @@ -76,3 +77,4 @@ TEST(ErrorOr, UserErrorData) { EXPECT_EQ("adena", t4().getError().ArgName); } } // end anon namespace +#endif