diff options
author | Tristan Gingold <gingold@adacore.com> | 2015-12-19 13:57:37 +0100 |
---|---|---|
committer | Tristan Gingold <gingold@adacore.com> | 2015-12-19 13:57:37 +0100 |
commit | 7fc250bfc464604ba811e9785a4719ac2c0e6564 (patch) | |
tree | 9b2361ab9fbeaa2707b358e50f65f6dd0fcb4f6f /testsuite/gna/bug029/fft2.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/fft2.vhdl')
-rw-r--r-- | testsuite/gna/bug029/fft2.vhdl | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/testsuite/gna/bug029/fft2.vhdl b/testsuite/gna/bug029/fft2.vhdl new file mode 100644 index 000000000..d6c64b462 --- /dev/null +++ b/testsuite/gna/bug029/fft2.vhdl @@ -0,0 +1,14 @@ +package fft_package is + TYPE complex IS ARRAY(0 TO 1) OF INTEGER; + function butterfly(X1, X2 , W : complex )return complex; +END fft_package; + +package body fft_package is + + function butterfly ( X1, X2 , W : complex )return complex is + + BEGIN + return X1; + return X2; + END butterfly; +end fft_package; |