aboutsummaryrefslogtreecommitdiffstats
path: root/unittests
diff options
context:
space:
mode:
authorMichael J. Spencer <bigcheesegs@gmail.com>2013-01-21 05:39:07 +0000
committerMichael J. Spencer <bigcheesegs@gmail.com>2013-01-21 05:39:07 +0000
commit7babd25ae44fd96805edaa4fe99bc638740dd164 (patch)
tree0270464abaddc51d04ebda297f78ecbe25a16ff2 /unittests
parentc61aa59bcc62019b8e31fcbb3582255be3a63052 (diff)
downloadexternal_llvm-7babd25ae44fd96805edaa4fe99bc638740dd164.zip
external_llvm-7babd25ae44fd96805edaa4fe99bc638740dd164.tar.gz
external_llvm-7babd25ae44fd96805edaa4fe99bc638740dd164.tar.bz2
[Support] Make test C++03.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@173004 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests')
-rw-r--r--unittests/Support/ErrorOrTest.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/unittests/Support/ErrorOrTest.cpp b/unittests/Support/ErrorOrTest.cpp
index 8ce7160..3181b4f 100644
--- a/unittests/Support/ErrorOrTest.cpp
+++ b/unittests/Support/ErrorOrTest.cpp
@@ -56,15 +56,14 @@ struct InvalidArgError {
std::string ArgName;
};
-#if LLVM_HAS_CXX11_STDLIB
namespace llvm {
template<>
-struct ErrorOrUserDataTraits<InvalidArgError> : std::true_type {
+struct ErrorOrUserDataTraits<InvalidArgError> : true_type {
static error_code error() {
return make_error_code(errc::invalid_argument);
}
};
-} // end namespace lld
+} // end namespace llvm
ErrorOr<int> t4() {
return InvalidArgError("adena");
@@ -77,4 +76,3 @@ TEST(ErrorOr, UserErrorData) {
EXPECT_EQ("adena", t4().getError<InvalidArgError>().ArgName);
}
} // end anon namespace
-#endif