aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/gna
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2015-07-10 19:12:54 +0200
committerTristan Gingold <tgingold@free.fr>2015-07-10 19:12:54 +0200
commit162aa24665bafdaab7fe5729c5ed6146ab503aa5 (patch)
tree037cf7ac88bfa9ff8b55183ce9a0136dd45be428 /testsuite/gna
parent2111c2950f71bd2b4295519a867b4277fd23565b (diff)
downloadghdl-162aa24665bafdaab7fe5729c5ed6146ab503aa5.tar.gz
ghdl-162aa24665bafdaab7fe5729c5ed6146ab503aa5.tar.bz2
ghdl-162aa24665bafdaab7fe5729c5ed6146ab503aa5.zip
Reproducer for ticket90.
Diffstat (limited to 'testsuite/gna')
-rw-r--r--testsuite/gna/ticket90/test.vhdl10
-rwxr-xr-xtestsuite/gna/ticket90/testsuite.sh14
2 files changed, 24 insertions, 0 deletions
diff --git a/testsuite/gna/ticket90/test.vhdl b/testsuite/gna/ticket90/test.vhdl
new file mode 100644
index 000000000..92b197117
--- /dev/null
+++ b/testsuite/gna/ticket90/test.vhdl
@@ -0,0 +1,10 @@
+entity test is
+ generic (
+ a, b : integer);
+begin
+ assert a = b report "a /= b" severity failure;
+end entity;
+
+architecture a of test is
+begin
+end architecture;
diff --git a/testsuite/gna/ticket90/testsuite.sh b/testsuite/gna/ticket90/testsuite.sh
new file mode 100755
index 000000000..d4f9881e9
--- /dev/null
+++ b/testsuite/gna/ticket90/testsuite.sh
@@ -0,0 +1,14 @@
+#! /bin/sh
+
+. ../../testenv.sh
+
+analyze test.vhdl
+elab_simulate test
+clean
+
+GHDL_STD_FLAGS=--std=08
+
+analyze test.vhdl
+clean
+
+echo "Test successful"