https://gcc.gnu.org/g:12703f67ffd72b3842e99cf2b5558aafa2444727

commit r15-8338-g12703f67ffd72b3842e99cf2b5558aafa2444727
Author: jjasmine <tanghocle...@gmail.com>
Date:   Sun Jun 23 10:39:12 2024 -0700

    gccrs: 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 e23c691d1dbc..7c7bc225e7e9 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)

Reply via email to