forked from ghdl/ghdl
-
Notifications
You must be signed in to change notification settings - Fork 0
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 a test for ghdl#1602
- Loading branch information
Showing
3 changed files
with
45 additions
and
0 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,13 @@ | ||
entity repro1 is | ||
generic (c : bit_vector); | ||
end entity; | ||
|
||
architecture behaviour of repro1 is | ||
|
||
signal s : bit_vector(3 downto 0); | ||
|
||
begin | ||
|
||
c <= s; | ||
|
||
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
entity shadow is | ||
end entity; | ||
|
||
architecture behaviour of shadow is | ||
|
||
signal s : bit_vector(3 downto 0); | ||
|
||
begin | ||
|
||
process | ||
|
||
procedure example (s : in bit_vector) is | ||
begin | ||
s <= s; | ||
end procedure; | ||
|
||
begin | ||
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#! /bin/sh | ||
|
||
. ../../testenv.sh | ||
|
||
export GHDL_STD_FLAGS=--std=93 | ||
analyze_failure shadow.vhdl | ||
analyze_failure repro1.vhdl | ||
|
||
clean | ||
|
||
echo "Test successful" |