diff options
author | Michael J. Spencer <bigcheesegs@gmail.com> | 2013-01-21 05:39:07 +0000 |
---|---|---|
committer | Michael J. Spencer <bigcheesegs@gmail.com> | 2013-01-21 05:39:07 +0000 |
commit | 7babd25ae44fd96805edaa4fe99bc638740dd164 (patch) | |
tree | 0270464abaddc51d04ebda297f78ecbe25a16ff2 /unittests/Support | |
parent | c61aa59bcc62019b8e31fcbb3582255be3a63052 (diff) |
[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/Support')
-rw-r--r-- | unittests/Support/ErrorOrTest.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/unittests/Support/ErrorOrTest.cpp b/unittests/Support/ErrorOrTest.cpp index 8ce7160ba3..3181b4fc4b 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 |