llvm.org GIT mirror llvm / 7babd25
[Support] Make test C++03. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@173004 91177308-0d34-0410-b5e6-96231b3b80d8 Michael J. Spencer 7 years ago
1 changed file(s) with 2 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
5555 std::string ArgName;
5656 };
5757
58 #if LLVM_HAS_CXX11_STDLIB
5958 namespace llvm {
6059 template<>
61 struct ErrorOrUserDataTraits : std::true_type {
60 struct ErrorOrUserDataTraits : true_type {
6261 static error_code error() {
6362 return make_error_code(errc::invalid_argument);
6463 }
6564 };
66 } // end namespace lld
65 } // end namespace llvm
6766
6867 ErrorOr t4() {
6968 return InvalidArgError("adena");
7675 EXPECT_EQ("adena", t4().getError().ArgName);
7776 }
7877 } // end anon namespace
79 #endif