https://gcc.gnu.org/g:163bd136710516f05bc197fec773e3009edf8319
commit 163bd136710516f05bc197fec773e3009edf8319 Author: jjasmine <tanghocle...@gmail.com> Date: Sun Jun 23 10:39:12 2024 -0700 Local testing for build_string and debug() gcc/rust/ChangeLog: * backend/rust-compile-expr.cc (CompileExpr::visit): Local testing for build_string and debug() Diff: --- gcc/rust/backend/rust-compile-expr.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gcc/rust/backend/rust-compile-expr.cc b/gcc/rust/backend/rust-compile-expr.cc index 2d5819419fbb..ab10af712c24 100644 --- a/gcc/rust/backend/rust-compile-expr.cc +++ b/gcc/rust/backend/rust-compile-expr.cc @@ -320,7 +320,10 @@ CompileExpr::visit (HIR::IfExpr &expr) void CompileExpr::visit (HIR::InlineAsm &expr) -{} +{ + tree test_string = build_string(expr.template_strs[0].symbol.size() + 1, expr.template_strs[0].symbol.c_str()); + debug(test_string); +} void CompileExpr::visit (HIR::IfExprConseqElse &expr)