diff options
Diffstat (limited to 'backend/unittests/Support/ErrorTest.cpp')
| -rw-r--r-- | backend/unittests/Support/ErrorTest.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/backend/unittests/Support/ErrorTest.cpp b/backend/unittests/Support/ErrorTest.cpp index af2ece9..de75aa3 100644 --- a/backend/unittests/Support/ErrorTest.cpp +++ b/backend/unittests/Support/ErrorTest.cpp @@ -30,6 +30,16 @@ int main() { return fail("Error code must have a stable name"); if (rcc::getErrorCodeName(rcc::ErrorCode::FrameLayoutFailed) != "frame layout failed") return fail("frame-layout errors must have a stable name"); + if (rcc::getErrorCodeName(rcc::ErrorCode::SchedulingFailed) != "scheduling failed") + return fail("scheduling errors must have a stable name"); + if (rcc::getErrorCodeName(rcc::ErrorCode::BranchRelaxationFailed) != "branch relaxation failed") + return fail("branch-relaxation errors must have a stable name"); + if (rcc::getErrorCodeName(rcc::ErrorCode::PseudoExpansionFailed) != "pseudo expansion failed") + return fail("pseudo-expansion errors must have a stable name"); + if (rcc::getErrorCodeName(rcc::ErrorCode::FinalEncodabilityFailed) != "final encodability failed") + return fail("final-encodability errors must have a stable name"); + if (rcc::getErrorCodeName(rcc::ErrorCode::CFGOptimizationFailed) != "CFG optimization failed") + return fail("CFG-optimization errors must have a stable name"); return 0; } |
