Is it possible to run verilator test benches using zig?

Currently writing cpp for verilator test benches and I want to use zig

is there a reason you don’t use .tb files?

just saw that verilator has cpp testbenches so I figured it would be interesting to try

c++ tbs seem like so much unnecessary work lol, have u tried the usual c linking in build.zig

verilator only outputs cpp

there’s linkLibCpp() so maybe that could help, i’m pretty sure u can link cpp to zig

not too sure i’m learning how compilers work atm

thats not the same thing thats just linking in the cpp stdlib. i think you could do it if you exported certain zig functions out, and called them in cpp, not sure if it’ll work tho