diff options
Diffstat (limited to 'testsuite/gna/bug048/leftof1.vhdl')
-rw-r--r-- | testsuite/gna/bug048/leftof1.vhdl | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/testsuite/gna/bug048/leftof1.vhdl b/testsuite/gna/bug048/leftof1.vhdl new file mode 100644 index 000000000..666ecc3fc --- /dev/null +++ b/testsuite/gna/bug048/leftof1.vhdl @@ -0,0 +1,22 @@ +entity leftofrightof is +end entity; + +architecture subclass_constant of leftofrightof is + +begin + + process + constant i: integer := 1; + begin + report "constant i = " & integer'image(i); + report "integer'leftof(i) = " & integer'image(integer'leftof(i)); + wait; + end process; + process + constant j: integer := 1; + begin + report "constant j = " & integer'image(j); + report "integer'rightof(j) = " & integer'image(integer'rightof(j)); + wait; + end process; +end architecture; |