[llvm-commits] [llvm] r172996 - /llvm/trunk/unittests/Support/ErrorOrTest.cpp
Benjamin Kramer
benny.kra at googlemail.com
Sun Jan 20 13:52:27 PST 2013
Author: d0k
Date: Sun Jan 20 15:52:27 2013
New Revision: 172996
URL: http://llvm.org/viewvc/llvm-project?rev=172996&view=rev
Log:
Disable test that fails due to lack of std::true_type in C++03.
Michael, can this test be ported to C++03?
Modified:
llvm/trunk/unittests/Support/ErrorOrTest.cpp
Modified: llvm/trunk/unittests/Support/ErrorOrTest.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/unittests/Support/ErrorOrTest.cpp?rev=172996&r1=172995&r2=172996&view=diff
==============================================================================
--- llvm/trunk/unittests/Support/ErrorOrTest.cpp (original)
+++ llvm/trunk/unittests/Support/ErrorOrTest.cpp Sun Jan 20 15:52:27 2013
@@ -56,6 +56,7 @@
std::string ArgName;
};
+#if LLVM_HAS_CXX11_STDLIB
namespace llvm {
template<>
struct ErrorOrUserDataTraits<InvalidArgError> : std::true_type {
@@ -76,3 +77,4 @@
EXPECT_EQ("adena", t4().getError<InvalidArgError>().ArgName);
}
} // end anon namespace
+#endif
More information about the llvm-commits
mailing list