aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/vests/vhdl-93/clifton-labs/compliant/functional/types/array-types/simple-integer-array.vhdl
blob: f5bc596e4341e1dc7c42a02fd0557b9e8c8c830f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
entity test is
end test;

architecture only of test is
begin  -- only
p: process
  type integerArray is array (0 to 2) of integer;
  variable myArray : integerArray;
begin  -- process p
  myArray(0) := 0;
  myArray(1) := 1;    
  myArray(2) := 2;

  assert myArray(0) = 0 report "TEST FAILED" severity FAILURE;
  assert myArray(1) = 1 report "TEST FAILED" severity FAILURE;
  assert myArray(2) = 2 report "TEST FAILED" severity FAILURE;

  report "TEST PASSED" severity NOTE;
  
  wait;
end process p;
end only;