blob: 9af857505ec71e287316f727b0b87eecc640d585 [file] [log] [blame]
/*
:name: cast_func
:description: $cast function test
:should_fail: 0
:tags: 8.16
*/
module class_tb ();
typedef enum { aaa, bbb, ccc, ddd, eee } values;
initial begin
values val;
if(!$cast(val, 5))
$display("$cast failed");
$display(val);
end
endmodule