From 829db3eefab7ccb3f8ff38fa5854f1aee2797f48 Mon Sep 17 00:00:00 2001 From: Wilson Snyder Date: Fri, 16 Oct 2020 19:26:04 -0400 Subject: [PATCH] Fix tick style on %p formats. --- src/V3CUse.cpp | 2 +- src/V3EmitV.cpp | 2 +- test_regress/t/t_class1.out | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/V3CUse.cpp b/src/V3CUse.cpp index 78afb6dea..3c02364a1 100644 --- a/src/V3CUse.cpp +++ b/src/V3CUse.cpp @@ -148,7 +148,7 @@ class CUseVisitor : public AstNVisitor { funcp->isStatic(false); funcp->protect(false); AstNode* exprp = new AstCMath(nodep->fileline(), - "std::string(\"`{\") + to_string_middle() + \"}\"", 0); + "std::string(\"'{\") + to_string_middle() + \"}\"", 0); exprp->dtypeSetString(); funcp->addStmtsp(new AstCReturn(nodep->fileline(), exprp)); nodep->addStmtp(funcp); diff --git a/src/V3EmitV.cpp b/src/V3EmitV.cpp index 2cd744a85..27e8b3d21 100644 --- a/src/V3EmitV.cpp +++ b/src/V3EmitV.cpp @@ -490,7 +490,7 @@ class EmitVBaseVisitor : public EmitCBaseVisitor { puts(")"); } virtual void visit(AstInitArray* nodep) override { - putfs(nodep, "`{"); + putfs(nodep, "'{"); int comma = 0; const AstInitArray::KeyItemMap& mapr = nodep->map(); for (AstInitArray::KeyItemMap::const_iterator it = mapr.begin(); it != mapr.end(); ++it) { diff --git a/test_regress/t/t_class1.out b/test_regress/t/t_class1.out index d88b62e63..2e93901d2 100644 --- a/test_regress/t/t_class1.out +++ b/test_regress/t/t_class1.out @@ -1,4 +1,4 @@ Display: null = "null" -Display: newed = "`{imembera:'h0, imemberb:'h0}" -Display: set = "`{imembera:'ha, imemberb:'h14}" +Display: newed = "'{imembera:'h0, imemberb:'h0}" +Display: set = "'{imembera:'ha, imemberb:'h14}" *-* All Finished *-*