aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/gna/issue1624/buggy.vhdl
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/gna/issue1624/buggy.vhdl')
-rw-r--r--testsuite/gna/issue1624/buggy.vhdl16
1 files changed, 16 insertions, 0 deletions
diff --git a/testsuite/gna/issue1624/buggy.vhdl b/testsuite/gna/issue1624/buggy.vhdl
new file mode 100644
index 000000000..86a050f30
--- /dev/null
+++ b/testsuite/gna/issue1624/buggy.vhdl
@@ -0,0 +1,16 @@
+entity buggy is
+begin
+end entity buggy;
+
+architecture a of buggy is
+begin
+
+p: process
+ variable v: real;
+begin
+ -- Remove the next line and GHDL does not crash
+ v := real((now / (1 ns)) * 1.0e-9);
+ wait;
+end process;
+
+end architecture a;