summaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
authorTristan Gingold2015-05-20 21:55:41 +0200
committerTristan Gingold2015-05-20 21:55:41 +0200
commit14e58cb98b543ae1402bf608632d459f03e755e5 (patch)
treead35fc33725f6a708d9cf963288e090412498835 /testsuite
parent06c4e6e0ba10149b272b0c49869152a50c732ae5 (diff)
downloadghdl-14e58cb98b543ae1402bf608632d459f03e755e5.tar.gz
ghdl-14e58cb98b543ae1402bf608632d459f03e755e5.tar.bz2
ghdl-14e58cb98b543ae1402bf608632d459f03e755e5.zip
Testcase for ticket 76.
Diffstat (limited to 'testsuite')
-rw-r--r--testsuite/gna/ticket76/bug.vhdl12
-rwxr-xr-xtestsuite/gna/ticket76/testsuite.sh10
2 files changed, 22 insertions, 0 deletions
diff --git a/testsuite/gna/ticket76/bug.vhdl b/testsuite/gna/ticket76/bug.vhdl
new file mode 100644
index 0000000..dd9e6f1
--- /dev/null
+++ b/testsuite/gna/ticket76/bug.vhdl
@@ -0,0 +1,12 @@
+entity ent is
+end entity;
+
+architecture a of ent is
+begin
+ main : process
+ variable t : time := 4 ns;
+ begin
+ report to_string(t / (2 ns));
+ wait;
+ end process;
+end architecture;
diff --git a/testsuite/gna/ticket76/testsuite.sh b/testsuite/gna/ticket76/testsuite.sh
new file mode 100755
index 0000000..e0096bb
--- /dev/null
+++ b/testsuite/gna/ticket76/testsuite.sh
@@ -0,0 +1,10 @@
+#! /bin/sh
+
+. ../../testenv.sh
+
+GHDL_STD_FLAGS=--std=08
+analyze bug.vhdl
+elab_simulate ent
+clean
+
+echo "Test successful"