aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite
diff options
context:
space:
mode:
authorTristan Gingold <gingold@adacore.com>2015-12-22 22:04:16 +0100
committerTristan Gingold <gingold@adacore.com>2015-12-24 13:56:41 +0100
commit2ac84541d494e06b7782cd11515264fd43f7532f (patch)
treecf224002e64ad0a54161314d2a89df974b9d3cfe /testsuite
parent1366a6fcb075b4ba80e7e2432312c4b3c31c69be (diff)
downloadghdl-2ac84541d494e06b7782cd11515264fd43f7532f.tar.gz
ghdl-2ac84541d494e06b7782cd11515264fd43f7532f.tar.bz2
ghdl-2ac84541d494e06b7782cd11515264fd43f7532f.zip
Add parse test for ams.
Diffstat (limited to 'testsuite')
-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 000000000..e0a85cb60
--- /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 000000000..a1d034830
--- /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"