From 7fc250bfc464604ba811e9785a4719ac2c0e6564 Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Sat, 19 Dec 2015 13:57:37 +0100 Subject: Add testcase for ghdl-llvm unreachable code. --- testsuite/gna/bug029/repro2.vhdl | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 testsuite/gna/bug029/repro2.vhdl (limited to 'testsuite/gna/bug029/repro2.vhdl') 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; -- cgit