forked from github/verilator
Add env var test
This commit is contained in:
parent
12cb819adc
commit
6a36bd8514
@ -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
|
||||
|
@ -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
|
||||
|
1
test_regress/t/t_flag_f__3.v
Normal file
1
test_regress/t/t_flag_f__3.v
Normal file
@ -0,0 +1 @@
|
||||
`define GOT_DEF3 1
|
Loading…
Reference in New Issue
Block a user