summaryrefslogtreecommitdiff
path: root/unittests
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2013-01-20 21:52:27 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2013-01-20 21:52:27 +0000
commitc052d5b047312195d2722c13af5fdf6d2ebe6bae (patch)
treee14d7306c69ee74d165052643085d25e9dd97b02 /unittests
parenta080daf5c6d9f62d021efe7c6c608a71d591dc44 (diff)
downloadllvm-c052d5b047312195d2722c13af5fdf6d2ebe6bae.tar.gz
llvm-c052d5b047312195d2722c13af5fdf6d2ebe6bae.tar.bz2
llvm-c052d5b047312195d2722c13af5fdf6d2ebe6bae.tar.xz
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
Diffstat (limited to 'unittests')
-rw-r--r--unittests/Support/ErrorOrTest.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/unittests/Support/ErrorOrTest.cpp b/unittests/Support/ErrorOrTest.cpp
index 1f80aa0cdf..8ce7160ba3 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<InvalidArgError> : std::true_type {
@@ -76,3 +77,4 @@ TEST(ErrorOr, UserErrorData) {
EXPECT_EQ("adena", t4().getError<InvalidArgError>().ArgName);
}
} // end anon namespace
+#endif