aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/gna/issue254/repro1.vhdl
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/gna/issue254/repro1.vhdl')
-rw-r--r--testsuite/gna/issue254/repro1.vhdl17
1 files changed, 17 insertions, 0 deletions
diff --git a/testsuite/gna/issue254/repro1.vhdl b/testsuite/gna/issue254/repro1.vhdl
new file mode 100644
index 000000000..49d396a7c
--- /dev/null
+++ b/testsuite/gna/issue254/repro1.vhdl
@@ -0,0 +1,17 @@
+entity repro1 is
+end entity;
+
+architecture a of repro1 is
+begin
+ process
+ type LongInteger is range -2**47 to 2**47-1;
+ variable v : LongInteger;
+ variable s : string (1 to 4);
+ begin
+ v := 12345678901;
+ report "v = " & LongInteger'image(v) severity note;
+ s := "1245";
+ assert LongInteger'Value (s) = 1245 severity failure;
+ wait;
+ end process;
+end architecture;