9 lines
217 B
Coq
9 lines
217 B
Coq
|
|
// Check that string literals cannot be assigned to unpacked arrays whose
|
||
|
|
// element type is narrower than 8 bits.
|
||
|
|
|
||
|
|
module test;
|
||
|
|
|
||
|
|
bit [6:0] value [0:3] = "AB"; // Error: target element type is too narrow
|
||
|
|
|
||
|
|
endmodule
|