small coverage improvements

This commit is contained in:
Zachary Snow 2023-11-04 22:24:59 -04:00
parent cd7b53c658
commit 6ffa31ff9a
6 changed files with 21 additions and 1 deletions

View File

@ -52,7 +52,7 @@ traverseDescriptionM other = return other
-- utility pattern for candidate string parameter items
pattern StringParam :: Identifier -> String -> ModuleItem
pattern StringParam x s =
pattern StringParam x s <-
MIPackageItem (Decl (Param Parameter UnknownType x (String s)))
-- write down which parameters may be variable-length strings

View File

@ -0,0 +1,10 @@
package P;
localparam X = 1;
endpackage
package Q;
export P::X;
import P::X;
endpackage
module top;
initial $display(Q::X);
endmodule

View File

@ -0,0 +1,3 @@
module top;
initial $display(1);
endmodule

4
test/lex/utf8.sv Normal file
View File

@ -0,0 +1,4 @@
module top;
// 😬
initial $display("Hi!");
endmodule

View File

@ -1,5 +1,7 @@
module top;
export "DPI-C" task t;
/* From IEEE 1800-2017 Section 35.4 */
export "DPI-C" f_plus = function \f+ ; // "f+" exported as "f_plus"

1
test/nosim/extern.sv Normal file
View File

@ -0,0 +1 @@
extern module foo(input x, output y);