DPI-C with Systemverilog Tool Crash

In reply to dave_59:

Here is a simple testcase.

test.sv:
import “DPI-C” string_sv2c=function void string_sv2c();

module test();

initial begin
string_sv2c();
end

endmodule

test.c:
include “svdpi.h”

void string_sv2c(){
printf(“C: Hello from C”);
}

vlib work
vlog test.sv test.c
vsim test -do “run –all”