aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/gna/bug0103/repro.vhdl
blob: 448cf67941e2133deee64296dfc4acba844add15 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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;