From c04f797dd4e9593b00c3abe72ba375932806305c Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Sun, 26 Jun 2022 07:40:17 +0200 Subject: testsuite/gna: add tests for #2110 --- testsuite/gna/issue2110/conf1.vhdl | 3 +++ testsuite/gna/issue2110/psl1.vhdl | 1 + testsuite/gna/issue2110/psl2.vhdl | 1 + testsuite/gna/issue2110/retid.vhdl | 1 + testsuite/gna/issue2110/testsuite.sh | 13 +++++++++++++ 5 files changed, 19 insertions(+) create mode 100644 testsuite/gna/issue2110/conf1.vhdl create mode 100644 testsuite/gna/issue2110/psl1.vhdl create mode 100644 testsuite/gna/issue2110/psl2.vhdl create mode 100644 testsuite/gna/issue2110/retid.vhdl create mode 100755 testsuite/gna/issue2110/testsuite.sh diff --git a/testsuite/gna/issue2110/conf1.vhdl b/testsuite/gna/issue2110/conf1.vhdl new file mode 100644 index 000000000..f3c37ca97 --- /dev/null +++ b/testsuite/gna/issue2110/conf1.vhdl @@ -0,0 +1,3 @@ +configuration" +" +for \ No newline at end of file diff --git a/testsuite/gna/issue2110/psl1.vhdl b/testsuite/gna/issue2110/psl1.vhdl new file mode 100644 index 000000000..69d0df631 --- /dev/null +++ b/testsuite/gna/issue2110/psl1.vhdl @@ -0,0 +1 @@ +entity begin restrict[*to 0 \ No newline at end of file diff --git a/testsuite/gna/issue2110/psl2.vhdl b/testsuite/gna/issue2110/psl2.vhdl new file mode 100644 index 000000000..01fbea406 --- /dev/null +++ b/testsuite/gna/issue2110/psl2.vhdl @@ -0,0 +1 @@ +architecturerestrict[=to 0 \ No newline at end of file diff --git a/testsuite/gna/issue2110/retid.vhdl b/testsuite/gna/issue2110/retid.vhdl new file mode 100644 index 000000000..1b5482847 --- /dev/null +++ b/testsuite/gna/issue2110/retid.vhdl @@ -0,0 +1 @@ +package function return g.b of \ No newline at end of file diff --git a/testsuite/gna/issue2110/testsuite.sh b/testsuite/gna/issue2110/testsuite.sh new file mode 100755 index 000000000..0524390f9 --- /dev/null +++ b/testsuite/gna/issue2110/testsuite.sh @@ -0,0 +1,13 @@ +#! /bin/sh + +. ../../testenv.sh + +export GHDL_STD_FLAGS=--std=08 +for f in conf1.vhdl psl1.vhdl psl2.vhdl retid.vhdl; do + analyze_failure $f +done + +clean + +echo "Test successful" + -- cgit v1.2.3