additional error case coverage

This commit is contained in:
Zachary Snow 2020-12-03 19:02:33 -07:00
parent 16c63b8109
commit 3ac1b4ea3c
10 changed files with 18 additions and 0 deletions

View File

@ -0,0 +1 @@
`include '/dev/null'

4
test/error/lhs_expr.sv Normal file
View File

@ -0,0 +1,4 @@
module top;
logic x;
assign {<< {x, 2'b00}} = 3'b101;
endmodule

View File

@ -0,0 +1,4 @@
module top;
logic x, y, z;
assign {<< {x, '{y:y, z:z}}} = 3'b101;
endmodule

1
test/error/line_char1.sv Normal file
View File

@ -0,0 +1 @@
`line 1 "asd" B

1
test/error/line_char2.sv Normal file
View File

@ -0,0 +1 @@
`line 1 "asd" 1B

1
test/error/line_eof.sv Normal file
View File

@ -0,0 +1 @@
`line

1
test/error/line_level.sv Normal file
View File

@ -0,0 +1 @@
`line 0 "asd" 3

View File

@ -0,0 +1 @@
`include "does_not_exist.sv"

View File

@ -0,0 +1,3 @@
`SOMETHING
module top;
endmodule

View File

@ -0,0 +1 @@
`ifdef FOO