Skip to content

Commit 24b77e9

Browse files
authored
Merge pull request #1351 from diffblue/assignment-pattern-lhs1
KNOWNBUG test for assignment pattern on LHS
2 parents ff06c23 + 4601df2 commit 24b77e9

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
KNOWNBUG
2+
assignment-pattern-lhs1.sv
3+
4+
^EXIT=0$
5+
^SIGNAL=0$
6+
--
7+
--
8+
This does not parse.
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
module main;
2+
3+
typedef struct packed {int a, b;} S;
4+
S my_s;
5+
int x, y;
6+
7+
initial begin
8+
// Assignment pattern on LHS.
9+
// Does not parse with Icarus Verilog, VCS, XCelium.
10+
// Works with Riviera, Questa.
11+
'{x, y} = S'{1, 2};
12+
13+
assert(x == 1 && y == 2);
14+
end
15+
16+
endmodule

0 commit comments

Comments
 (0)