Add env var test

This commit is contained in:
Wilson Snyder 2009-07-15 10:14:10 -04:00
parent 12cb819adc
commit 6a36bd8514
3 changed files with 6 additions and 0 deletions

View File

@ -8,6 +8,9 @@ module t;
`ifndef GOT_DEF2
$write("%%Error: NO GOT_DEF2\n"); $stop;
`endif
`ifndef GOT_DEF3
$write("%%Error: NO GOT_DEF3\n"); $stop;
`endif
`ifdef NON_DEF
$write("%%Error: NON_DEF\n"); $stop;
`endif

View File

@ -1,2 +1,4 @@
// Test that environment substitutions work
-f $VERILATOR_ROOT/test_regress/t/t_flag_f__2.vc
// Env var with .v file
$VERILATOR_ROOT/test_regress/t/t_flag_f__3.v

View File

@ -0,0 +1 @@
`define GOT_DEF3 1