-
-
Notifications
You must be signed in to change notification settings - Fork 84
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix crash with null array in constant record aggregate
Fixes xxx
- Loading branch information
Showing
5 changed files
with
42 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
entity issue1137 is | ||
end entity; | ||
|
||
architecture test of issue1137 is | ||
type t_rec is record | ||
x : integer; | ||
y : bit_vector(1 to 0); -- Null | ||
z : integer; | ||
end record; | ||
|
||
signal s : t_rec := (42, "", 55); | ||
begin | ||
|
||
process is | ||
variable v : t_rec := (666, "", 12); | ||
begin | ||
assert s.x = 42; | ||
assert s.y = ""; | ||
assert s.z = 55; | ||
v.y := ""; | ||
s.y <= ""; | ||
wait for 1 ns; | ||
assert s.x = 42; | ||
assert s.y = v.y; | ||
assert s.z = 55; | ||
assert v.x = 666; | ||
assert v.y = ""; | ||
assert v.z = 12; | ||
wait; | ||
end process; | ||
|
||
end architecture; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1092,3 +1092,4 @@ ename17 fail,gold,2008 | |
cmdline13 shell | ||
issue1117 normal,psl,2008 | ||
issue1125 normal,2008 | ||
issue1137 normal |