summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--testsuite/gna/bug031/ams1.vhdl13
-rwxr-xr-xtestsuite/gna/bug031/testsuite.sh9
2 files changed, 22 insertions, 0 deletions
diff --git a/testsuite/gna/bug031/ams1.vhdl b/testsuite/gna/bug031/ams1.vhdl
new file mode 100644
index 0000000..e0a85cb
--- /dev/null
+++ b/testsuite/gna/bug031/ams1.vhdl
@@ -0,0 +1,13 @@
+entity ams1 is
+end;
+
+architecture behav of ams1 is
+ nature electrical is real across real through ground reference;
+ -- terminal nx : electrical;
+ -- quantity energy : real;
+begin
+ process
+ begin
+ wait;
+ end process;
+end behav;
diff --git a/testsuite/gna/bug031/testsuite.sh b/testsuite/gna/bug031/testsuite.sh
new file mode 100755
index 0000000..a1d0348
--- /dev/null
+++ b/testsuite/gna/bug031/testsuite.sh
@@ -0,0 +1,9 @@
+#! /bin/sh
+
+. ../../testenv.sh
+
+$GHDL -s --ams ams1.vhdl
+
+clean
+
+echo "Test successful"