blob: 83f7462490b4baf6be6dbcc2f068a26b178b212b [file] [log] [blame]
/*
:name: fgets_function
:description: $fgets test
:should_fail: 0
:tags: 21.3
:type: simulation parsing
*/
module top();
int fd;
string tmp;
initial begin
fd = $fopen("tmp.txt", "w");
$fgets(tmp, fd);
end
final
$fclose(fd);
endmodule