summaryrefslogtreecommitdiff
path: root/testsuite/gna/bug029/repro2.vhdl
diff options
context:
space:
mode:
authorTristan Gingold2015-12-19 13:57:37 +0100
committerTristan Gingold2015-12-19 13:57:37 +0100
commit7fc250bfc464604ba811e9785a4719ac2c0e6564 (patch)
tree9b2361ab9fbeaa2707b358e50f65f6dd0fcb4f6f /testsuite/gna/bug029/repro2.vhdl
parent3089c62c524727d5eca16ebdbc817f19cf43e000 (diff)
downloadghdl-7fc250bfc464604ba811e9785a4719ac2c0e6564.tar.gz
ghdl-7fc250bfc464604ba811e9785a4719ac2c0e6564.tar.bz2
ghdl-7fc250bfc464604ba811e9785a4719ac2c0e6564.zip
Add testcase for ghdl-llvm unreachable code.
Diffstat (limited to 'testsuite/gna/bug029/repro2.vhdl')
-rw-r--r--testsuite/gna/bug029/repro2.vhdl11
1 files changed, 11 insertions, 0 deletions
diff --git a/testsuite/gna/bug029/repro2.vhdl b/testsuite/gna/bug029/repro2.vhdl
new file mode 100644
index 0000000..6d5bd9a
--- /dev/null
+++ b/testsuite/gna/bug029/repro2.vhdl
@@ -0,0 +1,11 @@
+package foo is
+ function some_foo return integer;
+end package;
+
+package body foo is
+ function some_foo return integer is
+ begin
+ return -1;
+ return 0;
+ end function;
+end package body;