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

use std.textio.all;

architecture only of foo is
begin  -- only
  process
    variable x : string(1 to 4) := "1234";
  begin  -- process
    assert x'length = 4 report "TEST FAILED - x'length does not equal 4" severity failure;
    assert x'length /= 4 report "TEST PASSED" severity note;
    wait;
  end process;
end only;