verilator/test_regress/t/t_timescale_parse.cpp
Tomasz Gorochowik 5b3717b369
Tests: Memory clean up in tests (#2645)
This patch normalizes what the tests do before exiting. After this
change each test should call final on the top module and explicitly
free the top module object before exiting.
2020-11-17 06:37:55 -05:00

24 lines
443 B
C++

// -*- mode: C++; c-file-style: "cc-mode" -*-
//
// This file ONLY is placed into the Public Domain, for any use,
// without warranty, 2019 by Wilson Snyder
#include "Vt_timescale_parse.h"
VM_PREFIX* tb = nullptr;
double sc_time_stamp() {
return 2 * 1e9; // e.g. 2 seconds in ns units
}
int main() {
tb = new VM_PREFIX("tb");
tb->eval();
tb->eval();
tb->eval();
tb->final();
VL_DO_DANGLING(delete tb, tb);
}