aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/gna
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2016-12-08 04:04:11 +0100
committerTristan Gingold <tgingold@free.fr>2016-12-08 05:01:43 +0100
commit4a13fde67eb89ec1b50a5925de901f340ae98b42 (patch)
tree7214d6a14286c94107ea7ebad8937b735b3d0943 /testsuite/gna
parent86c711e9dd0132f4fee1c1f69ad5feed96bc7de8 (diff)
downloadghdl-4a13fde67eb89ec1b50a5925de901f340ae98b42.tar.gz
ghdl-4a13fde67eb89ec1b50a5925de901f340ae98b42.tar.bz2
ghdl-4a13fde67eb89ec1b50a5925de901f340ae98b42.zip
Add testcase for #205
Diffstat (limited to 'testsuite/gna')
-rw-r--r--testsuite/gna/issue205/repro.vhdl7
-rwxr-xr-xtestsuite/gna/issue205/testsuite.sh10
2 files changed, 17 insertions, 0 deletions
diff --git a/testsuite/gna/issue205/repro.vhdl b/testsuite/gna/issue205/repro.vhdl
new file mode 100644
index 000000000..d981e81d0
--- /dev/null
+++ b/testsuite/gna/issue205/repro.vhdl
@@ -0,0 +1,7 @@
+package SortListGenericPkg is
+ generic (
+ type ElementType;
+ function "<"(L : ElementType; R : ElementType) return boolean;
+ function "<="(L : ElementType; R : ElementType) return boolean
+ );
+end package;
diff --git a/testsuite/gna/issue205/testsuite.sh b/testsuite/gna/issue205/testsuite.sh
new file mode 100755
index 000000000..7b37332aa
--- /dev/null
+++ b/testsuite/gna/issue205/testsuite.sh
@@ -0,0 +1,10 @@
+#! /bin/sh
+
+. ../../testenv.sh
+
+export GHDL_STD_FLAGS=--std=08
+analyze repro.vhdl
+
+clean
+
+echo "Test successful"