aboutsummaryrefslogtreecommitdiff
path: root/backend/unittests/Support
diff options
context:
space:
mode:
authorRichard-Qin-X <richard.qin.001@gmail.com>2026-08-11 17:37:42 +0800
committerRichard-Qin-X <richard.qin.001@gmail.com>2026-08-11 17:37:42 +0800
commit6a7b083f322f4ac47e58cbf9d4d5fd4d1f6fecd0 (patch)
treef363c502f0e2b9cda2f12928049275a433db6ad4 /backend/unittests/Support
parentadcf8c9b1bd1b47e00bf859693112cea1f7e8c9f (diff)
downloadrcc-project-6a7b083f322f4ac47e58cbf9d4d5fd4d1f6fecd0.tar.gz
rcc-project-6a7b083f322f4ac47e58cbf9d4d5fd4d1f6fecd0.tar.xz
[MIR] Accept fixed-baseline LLVM syntax
Diffstat (limited to 'backend/unittests/Support')
-rw-r--r--backend/unittests/Support/TextDiagnosticTest.cpp2
-rw-r--r--backend/unittests/Support/YAMLTest.cpp1
2 files changed, 2 insertions, 1 deletions
diff --git a/backend/unittests/Support/TextDiagnosticTest.cpp b/backend/unittests/Support/TextDiagnosticTest.cpp
index cd28027..71d02b2 100644
--- a/backend/unittests/Support/TextDiagnosticTest.cpp
+++ b/backend/unittests/Support/TextDiagnosticTest.cpp
@@ -34,7 +34,7 @@ int main() {
.Range = Range,
};
const std::string Formatted = rcc::formatTextDiagnostic(Diagnostic, Source);
- if (Formatted != "input.mir:2:3: error[yaml]: invalid scalar\nsecond line\n ^~~~~~")
+ if (Formatted != "error: input.mir:2:3: invalid scalar\nsecond line\n ^~~~~~")
return fail("Text diagnostics must have deterministic source rendering");
if (rcc::getDiagnosticSeverityName(rcc::DiagnosticSeverity::Warning) != "warning")
diff --git a/backend/unittests/Support/YAMLTest.cpp b/backend/unittests/Support/YAMLTest.cpp
index 445159d..74f7bf2 100644
--- a/backend/unittests/Support/YAMLTest.cpp
+++ b/backend/unittests/Support/YAMLTest.cpp
@@ -21,6 +21,7 @@ const rcc::yaml::Node *mappingValue(const rcc::yaml::Stream &Stream, const rcc::
int testMIRShape() {
const std::string Input =
+ "...\n"
"--- |\n"
" define void @f() {\n"
" entry:\n"