diff options
author | Tristan Gingold | 2015-12-19 13:57:37 +0100 |
---|---|---|
committer | Tristan Gingold | 2015-12-19 13:57:37 +0100 |
commit | 7fc250bfc464604ba811e9785a4719ac2c0e6564 (patch) | |
tree | 9b2361ab9fbeaa2707b358e50f65f6dd0fcb4f6f /testsuite/gna/bug029/repro2.vhdl | |
parent | 3089c62c524727d5eca16ebdbc817f19cf43e000 (diff) | |
download | ghdl-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.vhdl | 11 |
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; |