summaryrefslogtreecommitdiff
path: root/testsuite/vests/vhdl-93/clifton-labs/compliant/functional/objects/constants/simple-string-constant.vhdl
blob: 88b3d135b4bfa156b728bd6bef1625c8fbfe6955 (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
begin  -- only
  doit: process
    constant string_constant : string := "init";
  begin  -- process
    assert string_constant(1) = 'i' REPORT "string_constant(1) not properly intialized" SEVERITY FAILURE;
    assert string_constant(2) = 'n' REPORT "string_constant(2) not properly intialized" SEVERITY FAILURE;
    assert string_constant(3) = 'i' REPORT "string_constant(3) not properly intialized" SEVERITY FAILURE;
    assert string_constant(4) = 't' REPORT "string_constant(4) not properly intialized" SEVERITY FAILURE;
    wait;
  end process;
end only;