aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/gna/issue227/repro.vhdl
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2016-12-17 08:20:26 +0100
committerTristan Gingold <tgingold@free.fr>2016-12-17 08:20:26 +0100
commita97cc127eca2a1b769d2a665466e0e9a7ed732db (patch)
tree0fe5ac8a3180823293d8caa0d56364bf6e7b58e5 /testsuite/gna/issue227/repro.vhdl
parentfb5148354232092eeee3205124d6c243a3b32b00 (diff)
downloadghdl-a97cc127eca2a1b769d2a665466e0e9a7ed732db.tar.gz
ghdl-a97cc127eca2a1b769d2a665466e0e9a7ed732db.tar.bz2
ghdl-a97cc127eca2a1b769d2a665466e0e9a7ed732db.zip
Add testcase for #227
Diffstat (limited to 'testsuite/gna/issue227/repro.vhdl')
-rw-r--r--testsuite/gna/issue227/repro.vhdl21
1 files changed, 21 insertions, 0 deletions
diff --git a/testsuite/gna/issue227/repro.vhdl b/testsuite/gna/issue227/repro.vhdl
new file mode 100644
index 000000000..394fb9251
--- /dev/null
+++ b/testsuite/gna/issue227/repro.vhdl
@@ -0,0 +1,21 @@
+entity test is
+end entity test;
+
+architecture rtl of test is
+
+ type test_t is record
+ t1 : natural;
+ t2 : natural;
+ end record test_t;
+
+ constant C_TEST_T : test_t :=
+ (
+ t1 => 1,
+ t2 => 2);
+
+ constant C_TEST : bit_vector(0 to 7) :=
+ (C_TEST_T.t1 => '1', others => '0');
+
+begin
+
+end architecture rtl;