summaryrefslogtreecommitdiff
path: root/testsuite/gna/ticket94/testsuite.sh
diff options
context:
space:
mode:
authorTristan Gingold2015-09-26 05:55:02 +0200
committerTristan Gingold2015-09-26 05:55:02 +0200
commitd46e4f35422e107db1edfbcc97e3624fc3965b7f (patch)
tree8cb7e2e548689b2b02782f09155294b5a4763859 /testsuite/gna/ticket94/testsuite.sh
parentabd02c225a47ad960bb7d4044d9ad0b50e2d83d6 (diff)
downloadghdl-d46e4f35422e107db1edfbcc97e3624fc3965b7f.tar.gz
ghdl-d46e4f35422e107db1edfbcc97e3624fc3965b7f.tar.bz2
ghdl-d46e4f35422e107db1edfbcc97e3624fc3965b7f.zip
ticket94 reproducer
Diffstat (limited to 'testsuite/gna/ticket94/testsuite.sh')
-rwxr-xr-xtestsuite/gna/ticket94/testsuite.sh45
1 files changed, 45 insertions, 0 deletions
diff --git a/testsuite/gna/ticket94/testsuite.sh b/testsuite/gna/ticket94/testsuite.sh
new file mode 100755
index 0000000..796dd69
--- /dev/null
+++ b/testsuite/gna/ticket94/testsuite.sh
@@ -0,0 +1,45 @@
+#! /bin/sh
+
+. ../../testenv.sh
+
+# Original test
+analyze --work=alib asrc.vhd
+analyze tb.vhd
+elab_simulate tb
+
+# Reproducer - entity would be visible in the absence of the component
+analyze tb1.vhd
+elab_simulate tb1
+
+# Reproducer - entity is directly visible
+analyze --work=alib apkg.vhd
+analyze tb2.vhd
+elab_simulate tb2
+
+# Reproducer - entity is in the same library. (93c)
+analyze tb3.vhd
+elab_simulate tb3
+
+# Reproducer - entity in a different library, not visible.
+analyze tb4.vhd
+elab_simulate_failure tb4
+elab_simulate --syn-binding tb4
+
+clean
+clean alib
+
+# Reproducer - entity is in the same library (93)
+GHDL_STD_FLAGS=--std=93
+
+analyze --work=alib asrc.vhd
+analyze --work=alib apkg.vhd
+analyze tb3.vhd
+elab_simulate_failure tb3
+
+# But still works with --syn-binding
+elab_simulate --syn-binding tb3
+
+clean
+clean alib
+
+echo "Test successful"