1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-01-31 20:51:52 +01:00

ErrorTest.cpp: Move instantiations out of anonymous namespace. gcc didn't complain.

llvm-svn: 264297
This commit is contained in:
NAKAMURA Takumi 2016-03-24 15:40:46 +00:00
parent c43df20a4d
commit 5fba946e7d

View File

@ -45,8 +45,6 @@ protected:
int Info;
};
template <> char ErrorInfo<CustomError>::ID = 0;
// Custom error class with a custom base class and some additional random
// 'info'.
class CustomSubError : public ErrorInfo<CustomSubError, CustomError> {
@ -72,8 +70,6 @@ protected:
int ExtraInfo;
};
template <> char ErrorInfo<CustomSubError, CustomError>::ID = 0;
static Error handleCustomError(const CustomError &CE) { return Error(); }
static void handleCustomErrorVoid(const CustomError &CE) {}
@ -457,3 +453,6 @@ TEST(Error, ErrorCodeConversions) {
}
} // end anon namespace
template <> char ErrorInfo<CustomError>::ID = 0;
template <> char ErrorInfo<CustomSubError, CustomError>::ID = 0;