diff --git a/test_regress/t/t_trace_cat.cpp b/test_regress/t/t_trace_cat.cpp index 86b5149d6..020037742 100644 --- a/test_regress/t/t_trace_cat.cpp +++ b/test_regress/t/t_trace_cat.cpp @@ -63,7 +63,7 @@ int main(int argc, char **argv, char **env) { #elif defined(T_TRACE_CAT_RENEW) tfp->close(); delete tfp; - VerilatedVcdC* tfp = new VerilatedVcdC; + tfp = new VerilatedVcdC; top->trace(tfp,99); tfp->open(trace_name()); #else