aboutsummaryrefslogtreecommitdiff
path: root/llvm/unittests/Support/ErrorTest.cpp
diff options
context:
space:
mode:
authorNAKAMURA Takumi <geek4civic@gmail.com>2016-03-24 15:40:46 +0000
committerNAKAMURA Takumi <geek4civic@gmail.com>2016-03-24 15:40:46 +0000
commit882f2092a823133cde2c84c1d0939dc1b20dffd7 (patch)
tree2d3ee8423a4bd5587ab7bfb1fd2ac372f37823da /llvm/unittests/Support/ErrorTest.cpp
parent4498eff9bbbb79b963c97c8cdcaee46796629428 (diff)
downloadllvm-882f2092a823133cde2c84c1d0939dc1b20dffd7.zip
llvm-882f2092a823133cde2c84c1d0939dc1b20dffd7.tar.gz
llvm-882f2092a823133cde2c84c1d0939dc1b20dffd7.tar.bz2
ErrorTest.cpp: Move instantiations out of anonymous namespace. gcc didn't complain.
llvm-svn: 264297
Diffstat (limited to 'llvm/unittests/Support/ErrorTest.cpp')
-rw-r--r--llvm/unittests/Support/ErrorTest.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/llvm/unittests/Support/ErrorTest.cpp b/llvm/unittests/Support/ErrorTest.cpp
index 43ceec1..cf1c6e6 100644
--- a/llvm/unittests/Support/ErrorTest.cpp
+++ b/llvm/unittests/Support/ErrorTest.cpp
@@ -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;