From 135658f4bcd0ee7ee5c68e91d747d5bde455945b Mon Sep 17 00:00:00 2001 From: Benjamin Kramer Date: Sun, 20 Jan 2013 21:52:27 +0000 Subject: Disable test that fails due to lack of std::true_type in C++03. Michael, can this test be ported to C++03? llvm-svn: 172996 --- llvm/unittests/Support/ErrorOrTest.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'llvm/unittests/Support/ErrorOrTest.cpp') diff --git a/llvm/unittests/Support/ErrorOrTest.cpp b/llvm/unittests/Support/ErrorOrTest.cpp index 1f80aa0..8ce7160 100644 --- a/llvm/unittests/Support/ErrorOrTest.cpp +++ b/llvm/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 -- cgit v1.1