Fix examples not flushing vcd (#2787).

This commit is contained in:
Wilson Snyder 2021-02-13 17:06:53 -05:00
parent 36eb952b60
commit 2b72218dd8
4 changed files with 7 additions and 3 deletions

View File

@ -9,6 +9,8 @@ The contributors that suggested a given feature are shown in []. Thanks!
**** Fix $fread extra semicolon inside statements. [Leendert van Doorn]
**** Fix examples not flushing vcd (#2787). [Richard E George]
* Verilator 4.108 2021-01-10

View File

@ -38,5 +38,5 @@ int main(int argc, char** argv, char** env) {
delete top;
// Return good completion status
exit(0);
return 0;
}

View File

@ -71,5 +71,6 @@ int main(int argc, char** argv, char** env) {
top = nullptr;
// Return good completion status
exit(0);
// Don't use exit() or destructor won't get called
return 0;
}

View File

@ -102,5 +102,6 @@ int main(int argc, char** argv, char** env) {
#endif
// Return good completion status
exit(0);
// Don't use exit() or destructor won't get called
return 0;
}