aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--testsuite/gna/issue1883/repro.vhdl4
-rwxr-xr-xtestsuite/gna/issue1883/testsuite.sh18
2 files changed, 22 insertions, 0 deletions
diff --git a/testsuite/gna/issue1883/repro.vhdl b/testsuite/gna/issue1883/repro.vhdl
new file mode 100644
index 000000000..c17ac5870
--- /dev/null
+++ b/testsuite/gna/issue1883/repro.vhdl
@@ -0,0 +1,4 @@
+-- My comment ƒ¦ îOD:x
+
+entity ent is
+end;
diff --git a/testsuite/gna/issue1883/testsuite.sh b/testsuite/gna/issue1883/testsuite.sh
new file mode 100755
index 000000000..56a4dedd2
--- /dev/null
+++ b/testsuite/gna/issue1883/testsuite.sh
@@ -0,0 +1,18 @@
+#! /bin/sh
+
+. ../../testenv.sh
+
+export GHDL_STD_FLAGS=--std=08
+analyze repro.vhdl
+clean
+
+export GHDL_STD_FLAGS=--std=02
+analyze repro.vhdl
+clean
+
+export GHDL_STD_FLAGS=--std=93
+analyze_failure repro.vhdl
+analyze -C repro.vhdl
+clean
+
+echo "Test successful"