aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2016-10-10 06:57:22 +0200
committerTristan Gingold <tgingold@free.fr>2016-10-10 06:57:22 +0200
commit498665c5328fa2c2e0a0d114e39c545d04fbdfe9 (patch)
tree76a4da70933c53c2f7a8c3d07d1eb9bd564583e3
parent26005c0d7a24b0b436625bbe7c7e869bf8f5079e (diff)
downloadghdl-498665c5328fa2c2e0a0d114e39c545d04fbdfe9.tar.gz
ghdl-498665c5328fa2c2e0a0d114e39c545d04fbdfe9.tar.bz2
ghdl-498665c5328fa2c2e0a0d114e39c545d04fbdfe9.zip
Add reproducer for issue #158
-rw-r--r--testsuite/gna/issue158/repro.vhdl19
-rwxr-xr-xtestsuite/gna/issue158/testsuite.sh13
2 files changed, 32 insertions, 0 deletions
diff --git a/testsuite/gna/issue158/repro.vhdl b/testsuite/gna/issue158/repro.vhdl
new file mode 100644
index 000000000..ce7cd4180
--- /dev/null
+++ b/testsuite/gna/issue158/repro.vhdl
@@ -0,0 +1,19 @@
+entity repro is
+end repro;
+
+architecture behav of repro is
+begin
+ Genf: for i in 1 to 2 generate
+ begin
+ blk : block
+ begin
+ end block;
+ end generate;
+
+ geni : if true generate
+ begin
+ blk : block
+ begin
+ end block;
+ end generate;
+end behav;
diff --git a/testsuite/gna/issue158/testsuite.sh b/testsuite/gna/issue158/testsuite.sh
new file mode 100755
index 000000000..cc3b19ef5
--- /dev/null
+++ b/testsuite/gna/issue158/testsuite.sh
@@ -0,0 +1,13 @@
+#! /bin/sh
+
+. ../../testenv.sh
+
+analyze repro.vhdl
+if ghdl_has_feature repro ghw; then
+ elab_simulate repro --wave=repro.ghw
+ # How to test the ghw ? Use ghwdump ?
+fi
+clean
+rm -f repro.ghw
+
+echo "Test successful"