aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/gna/issue241/rec.vhdl
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2016-12-21 20:34:03 +0100
committerTristan Gingold <tgingold@free.fr>2016-12-21 20:34:03 +0100
commitf0aeb9278bec7c1b9ebf9e96a08c453966f0510d (patch)
tree5130114513ffbcde42ed3e79c1d2112a68d3a0a0 /testsuite/gna/issue241/rec.vhdl
parentf8bcaadda310f55277c64030c9dde05edc6e7ab8 (diff)
downloadghdl-f0aeb9278bec7c1b9ebf9e96a08c453966f0510d.tar.gz
ghdl-f0aeb9278bec7c1b9ebf9e96a08c453966f0510d.tar.bz2
ghdl-f0aeb9278bec7c1b9ebf9e96a08c453966f0510d.zip
Add testcase for #241
Diffstat (limited to 'testsuite/gna/issue241/rec.vhdl')
-rw-r--r--testsuite/gna/issue241/rec.vhdl21
1 files changed, 21 insertions, 0 deletions
diff --git a/testsuite/gna/issue241/rec.vhdl b/testsuite/gna/issue241/rec.vhdl
new file mode 100644
index 000000000..372f74469
--- /dev/null
+++ b/testsuite/gna/issue241/rec.vhdl
@@ -0,0 +1,21 @@
+entity rec is
+end;
+
+architecture behav of rec is
+ type rec_type is record
+ a, b : natural;
+ end record;
+
+ constant r1 : rec_type := (a | b => 2);
+ constant b : boolean := r1.a = r1.b;
+begin
+ process
+ variable a : integer := 5;
+ begin
+ case a = 5 is
+ when b => null;
+ when false => null;
+ end case;
+ wait;
+ end process;
+end behav;