aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/gna/bug0103/repro.vhdl
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/gna/bug0103/repro.vhdl')
-rw-r--r--testsuite/gna/bug0103/repro.vhdl27
1 files changed, 27 insertions, 0 deletions
diff --git a/testsuite/gna/bug0103/repro.vhdl b/testsuite/gna/bug0103/repro.vhdl
new file mode 100644
index 000000000..448cf6794
--- /dev/null
+++ b/testsuite/gna/bug0103/repro.vhdl
@@ -0,0 +1,27 @@
+entity repro is
+end repro;
+
+entity buf is
+ port (i : bit; o : out bit);
+end buf;
+
+architecture behav of buf is
+begin
+ o <= i;
+end behav;
+
+architecture behav of repro is
+ signal a, b : bit;
+ signal r : bit;
+begin
+ dut: entity work.buf port map (i => a xor b, o => r);
+ process
+ begin
+ a <= '0';
+ b <= '1';
+ wait for 1 ns;
+ assert r = '1' severity failure;
+
+ wait;
+ end process;
+end behav;