Sign in
foss-fpga-tools
/
third_party
/
Surelog
/
4a79a47b7dd03dd4b2776ee40322b0149935d234
/
.
/
src
/
Testcases
/
Google
/
chapter-21
/
21.3--fgets.sv
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