Tests: Fix GCC 13.2.0 issues. No functional change.
This commit is contained in:
parent
083fb7e9c2
commit
7eb1b6c32b
|
|
@ -658,7 +658,7 @@ sub new {
|
||||||
pli_flags => ["-I$ENV{VERILATOR_ROOT}/include/vltstd -fPIC -shared"
|
pli_flags => ["-I$ENV{VERILATOR_ROOT}/include/vltstd -fPIC -shared"
|
||||||
. (($^O eq "darwin" )
|
. (($^O eq "darwin" )
|
||||||
? " -Wl,-undefined,dynamic_lookup"
|
? " -Wl,-undefined,dynamic_lookup"
|
||||||
: " -export-dynamic")
|
: " -rdynamic")
|
||||||
. ($opt_verbose ? " -DTEST_VERBOSE=1" : "")
|
. ($opt_verbose ? " -DTEST_VERBOSE=1" : "")
|
||||||
. " -o $self->{obj_dir}/libvpi.so"],
|
. " -o $self->{obj_dir}/libvpi.so"],
|
||||||
tool_c_flags => [],
|
tool_c_flags => [],
|
||||||
|
|
|
||||||
|
|
@ -12,13 +12,14 @@
|
||||||
#include VM_PREFIX_INCLUDE
|
#include VM_PREFIX_INCLUDE
|
||||||
|
|
||||||
int main(int argc, char** argv) {
|
int main(int argc, char** argv) {
|
||||||
VerilatedContext ctx;
|
std::unique_ptr<VerilatedContext> contextp{new VerilatedContext};
|
||||||
VerilatedVcdC tfp;
|
std::unique_ptr<VerilatedVcdC> tfp{new VerilatedVcdC};
|
||||||
Vt_trace_open_wrong_order_bad dut;
|
std::unique_ptr<VM_PREFIX> top{new VM_PREFIX{contextp.get(), "top"}};
|
||||||
ctx.traceEverOn(true);
|
|
||||||
tfp.open(VL_STRINGIFY(TEST_OBJ_DIR) "/dump.vcd"); // Error! shall put to the next line!
|
contextp->traceEverOn(true);
|
||||||
dut.trace(&tfp, 99); // Error!
|
tfp->open(VL_STRINGIFY(TEST_OBJ_DIR) "/dump.vcd"); // Error! shall put to the next line!
|
||||||
tfp.dump(0);
|
top->trace(tfp.get(), 99); // Error!
|
||||||
tfp.close();
|
tfp->dump(0);
|
||||||
|
tfp->close();
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue