aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/gna/issue621/ent2.vhdl
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2018-07-07 21:37:51 +0200
committerTristan Gingold <tgingold@free.fr>2018-07-08 13:40:09 +0200
commit18116ef10e66015fa9445fcb072441d035a282b9 (patch)
treef6ff21f189b97764913186a5fd7a4250feefc375 /testsuite/gna/issue621/ent2.vhdl
parent714dd8242d80bfdc2decada72aef1b10827d9876 (diff)
downloadghdl-18116ef10e66015fa9445fcb072441d035a282b9.tar.gz
ghdl-18116ef10e66015fa9445fcb072441d035a282b9.tar.bz2
ghdl-18116ef10e66015fa9445fcb072441d035a282b9.zip
Add reproducer for #621
Diffstat (limited to 'testsuite/gna/issue621/ent2.vhdl')
-rw-r--r--testsuite/gna/issue621/ent2.vhdl12
1 files changed, 12 insertions, 0 deletions
diff --git a/testsuite/gna/issue621/ent2.vhdl b/testsuite/gna/issue621/ent2.vhdl
new file mode 100644
index 000000000..277770bdc
--- /dev/null
+++ b/testsuite/gna/issue621/ent2.vhdl
@@ -0,0 +1,12 @@
+entity crash_entity is end entity;
+architecture default of crash_entity is
+ type rec is record
+ v : natural;
+ end record;
+ attribute s : rec;
+ function func return boolean is
+ begin
+ return s.v = 0;
+ end function;
+begin
+end architecture;