aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/gna/issue623/crash.vhdl
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/gna/issue623/crash.vhdl')
-rw-r--r--testsuite/gna/issue623/crash.vhdl14
1 files changed, 14 insertions, 0 deletions
diff --git a/testsuite/gna/issue623/crash.vhdl b/testsuite/gna/issue623/crash.vhdl
new file mode 100644
index 000000000..a35cfddb4
--- /dev/null
+++ b/testsuite/gna/issue623/crash.vhdl
@@ -0,0 +1,14 @@
+entity crash_entity is end entity;
+
+architecture default of crash_entity is
+ type foo_t is record
+ a, b : bit;
+ end record;
+
+ function func return bit is
+ variable v : foo_t(0 to 1);
+ begin
+ return '1';
+ end function;
+begin
+end architecture;