aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/vests/vhdl-93/clifton-labs/compliant/functional/attributes/type/simple-integer-test-rightof.vhdl
blob: de11c66c1b220d7786d9717d51b54cb7fb23e8b7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
entity test is
end test;

architecture only of test is
  type small is range 1 to 3;
begin  -- only
p: process
begin  -- process p
  assert small'rightof(1) = 2  report "TEST FAILED. rightof 1 = 2" severity FAILURE;
  report "TEST PASSED rightof 1 = 2" severity NOTE;
  assert small'rightof(2) = 3  report "TEST FAILED. rightof 2 = 3" severity FAILURE;
  report "TEST PASSED rightof 2 = 3" severity NOTE;
  wait;
end process p;
end only;