summaryrefslogtreecommitdiff
path: root/testsuite/gna/bug017/call8.vhdl
blob: 4e88c65765de7e642a77a5a0d8d8e9c0e9f03896 (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
entity call8 is
end;

architecture behav of call8 is
  type int_vector is array (natural range <>) of integer;
  constant c : integer := 16#0123_4567#;
  
  procedure check (s : int_vector) is
  begin
    wait for 2 ns;
    assert s (2) = c;
  end;

  signal s : int_vector (0 to 3) := (123, 234, c, 345);
begin
  s (2) <= 456 after 1 ns;
  
  process
  begin
    check (s);
    report "SUCCESS" severity note;
    wait;
  end process;
 
end behav;