aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2020-07-30 19:18:32 +0200
committerTristan Gingold <tgingold@free.fr>2020-07-30 19:18:32 +0200
commite764c83d859fbc7affb47e96add4fe658f96e212 (patch)
treeed8063d7f539ef23d8b15dec0c7df7d003d965e6
parent7f0f6c771e501f923d10cec3faf51f379fce40e7 (diff)
downloadghdl-e764c83d859fbc7affb47e96add4fe658f96e212.tar.gz
ghdl-e764c83d859fbc7affb47e96add4fe658f96e212.tar.bz2
ghdl-e764c83d859fbc7affb47e96add4fe658f96e212.zip
testsuite/gna: add a test for #1403
-rw-r--r--testsuite/gna/issue1403/ent.vhdl6
-rwxr-xr-xtestsuite/gna/issue1403/testsuite.sh13
2 files changed, 19 insertions, 0 deletions
diff --git a/testsuite/gna/issue1403/ent.vhdl b/testsuite/gna/issue1403/ent.vhdl
new file mode 100644
index 000000000..1b14165e4
--- /dev/null
+++ b/testsuite/gna/issue1403/ent.vhdl
@@ -0,0 +1,6 @@
+entity ent is
+end;
+
+architecture arch of ent is
+begin
+end;
diff --git a/testsuite/gna/issue1403/testsuite.sh b/testsuite/gna/issue1403/testsuite.sh
new file mode 100755
index 000000000..ed90bf517
--- /dev/null
+++ b/testsuite/gna/issue1403/testsuite.sh
@@ -0,0 +1,13 @@
+#! /bin/sh
+
+. ../../testenv.sh
+
+
+analyze ent.vhdl
+$GHDL --gen-makefile -frelaxed ent > Makefile
+grep -q relaxed Makefile
+
+rm -f Makefile
+clean
+
+echo "Test successful"