-
Notifications
You must be signed in to change notification settings - Fork 349
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
testsuite/gna: add reproducer for #1419
- Loading branch information
Showing
5 changed files
with
57 additions
and
3 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package model_pkg is | ||
type t_record is | ||
record | ||
--srt : string (1 downto 1); -- works | ||
srt : string; | ||
num : natural; | ||
end record; | ||
|
||
type t_record_array is array (natural range <>) of t_record; | ||
|
||
constant k : t_record_array := (("a", 0), ("b", 1)); | ||
end package; |
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,16 @@ | ||
entity repro1 is | ||
end; | ||
|
||
architecture behav of repro1 is | ||
type t_record is | ||
record | ||
--srt : string (1 downto 1); -- works | ||
srt : string; | ||
num : positive; | ||
end record; | ||
|
||
type t_record_array is array (natural range <>) of t_record; | ||
|
||
constant k : t_record_array := (("a", 1), ("b", 2)); | ||
begin | ||
end; |
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,12 @@ | ||
entity repro2 is | ||
end; | ||
|
||
architecture behav of repro2 is | ||
type t_record is record | ||
str : string; | ||
num : positive; | ||
end record; | ||
|
||
constant k : t_record := ("abc", 1); | ||
begin | ||
end; |
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,8 @@ | ||
entity tb is | ||
end; | ||
|
||
use work.model_pkg.all; | ||
|
||
architecture behav of tb is | ||
begin | ||
end; |
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