aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/vests/vhdl-93/clifton-labs/compliant/functional/functions/simple-out-parameter.vhdl
blob: 7131e4513d7a37219525d2514dfb9b740e33892a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
entity test is
end test;

architecture only of test is
  procedure out_param ( one : out integer ) is
  begin
    one := 1;
  end out_param;
begin  -- only
  doit: process
    variable one : integer := 0;
  begin  -- process doit
    out_param( one );
    assert one = 1 report "TEST FAILED" severity failure;
    report "TEST PASSED";
    wait;
  end process doit;
end only;