aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/synth/issue2330/repro.vhdl
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/synth/issue2330/repro.vhdl')
-rw-r--r--testsuite/synth/issue2330/repro.vhdl13
1 files changed, 13 insertions, 0 deletions
diff --git a/testsuite/synth/issue2330/repro.vhdl b/testsuite/synth/issue2330/repro.vhdl
new file mode 100644
index 000000000..c112b23bc
--- /dev/null
+++ b/testsuite/synth/issue2330/repro.vhdl
@@ -0,0 +1,13 @@
+entity repro is
+ port (a, b : bit_vector(7 downto 0);
+ o : out bit);
+end repro;
+
+architecture arch of repro is
+ function f (a, b : bit_vector(7 downto 0)) return boolean is
+ begin
+ return a = x"ca" and b = x"fe";
+ end f;
+begin
+ o <= '1' when f(a,b) else '0';
+end arch;