From 2ac84541d494e06b7782cd11515264fd43f7532f Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Tue, 22 Dec 2015 22:04:16 +0100 Subject: Add parse test for ams. --- testsuite/gna/bug031/ams1.vhdl | 13 +++++++++++++ testsuite/gna/bug031/testsuite.sh | 9 +++++++++ 2 files changed, 22 insertions(+) create mode 100644 testsuite/gna/bug031/ams1.vhdl create mode 100755 testsuite/gna/bug031/testsuite.sh (limited to 'testsuite') 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" -- cgit v1.2.3