From 1308fb84af4929a3d35f9d21da88216b48bb9b89 Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Thu, 10 Sep 2015 20:31:13 +0200 Subject: Add testcase for ticket54. --- testsuite/gna/ticket54/test.vhdl | 28 ++++++++++++++++++++++++++++ testsuite/gna/ticket54/testsuite.sh | 9 +++++++++ 2 files changed, 37 insertions(+) create mode 100644 testsuite/gna/ticket54/test.vhdl create mode 100755 testsuite/gna/ticket54/testsuite.sh (limited to 'testsuite/gna/ticket54') diff --git a/testsuite/gna/ticket54/test.vhdl b/testsuite/gna/ticket54/test.vhdl new file mode 100644 index 0000000..7254942 --- /dev/null +++ b/testsuite/gna/ticket54/test.vhdl @@ -0,0 +1,28 @@ +entity test is +end entity; + +architecture a of test is + procedure check(value : boolean) is + begin + assert value; + end procedure; +begin + + main : process + procedure do_some_other_stuff is + begin + check(false); + end procedure; + + procedure do_stuff is + begin + check(true); + do_some_other_stuff; + check(true); + end procedure; + begin + check(true); + do_stuff; + wait; + end process; +end architecture; diff --git a/testsuite/gna/ticket54/testsuite.sh b/testsuite/gna/ticket54/testsuite.sh new file mode 100755 index 0000000..c2af839 --- /dev/null +++ b/testsuite/gna/ticket54/testsuite.sh @@ -0,0 +1,9 @@ +#! /bin/sh + +. ../../testenv.sh + +analyze test.vhdl +elab_simulate test +clean + +echo "Test successful" -- cgit