blob: 7cad3a130f263c36e47b663d3ff914b4e50881d0 [file] [log] [blame]
/*
:name: ferror_function
:description: $ferror test
:should_fail: 0
:tags: 21.3
:type: simulation parsing
*/
module top();
initial begin
int fd;
string str;
integer errno;
fd = $fopen("tmp.txt", "w");
errno = $ferror(fd, str);
$display(errno);
$display(str);
$fclose(fd);
end
endmodule