aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/gna/issue373/e.vhdl
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/gna/issue373/e.vhdl')
-rw-r--r--testsuite/gna/issue373/e.vhdl20
1 files changed, 20 insertions, 0 deletions
diff --git a/testsuite/gna/issue373/e.vhdl b/testsuite/gna/issue373/e.vhdl
new file mode 100644
index 000000000..395e8c6e9
--- /dev/null
+++ b/testsuite/gna/issue373/e.vhdl
@@ -0,0 +1,20 @@
+entity x is
+ port(
+ t :out bit_vector(0 to 0);
+ z :out bit_vector(0 to 0)
+ );
+end entity;
+architecture a of x is begin end architecture;
+
+entity e is end entity;
+architecture a of e is
+ constant z :integer := 0;
+ subtype t is bit_vector(0 to 0);
+ signal actual_for_t :bit;
+ signal actual_for_z :t;
+begin
+ inst: entity work.x port map(
+ t(z) => actual_for_t,
+ t(z) => actual_for_z
+ );
+end architecture;