diff options
author | Tristan Gingold | 2015-05-12 20:49:47 +0200 |
---|---|---|
committer | Tristan Gingold | 2015-05-12 20:49:47 +0200 |
commit | 75f247abf04876abd3d18c29ffe4750524ac5ed1 (patch) | |
tree | e46216c15274c05e403b2fd0fdd05bbcb48b6090 /testsuite | |
parent | cc2542a4207fdf47ce93c5476679011f037a7dac (diff) | |
download | ghdl-75f247abf04876abd3d18c29ffe4750524ac5ed1.tar.gz ghdl-75f247abf04876abd3d18c29ffe4750524ac5ed1.tar.bz2 ghdl-75f247abf04876abd3d18c29ffe4750524ac5ed1.zip |
Testcase for ticket 56.
Diffstat (limited to 'testsuite')
-rw-r--r-- | testsuite/gna/ticket56/bug.vhdl | 15 | ||||
-rwxr-xr-x | testsuite/gna/ticket56/testsuite.sh | 9 |
2 files changed, 24 insertions, 0 deletions
diff --git a/testsuite/gna/ticket56/bug.vhdl b/testsuite/gna/ticket56/bug.vhdl new file mode 100644 index 0000000..43b3ab0 --- /dev/null +++ b/testsuite/gna/ticket56/bug.vhdl @@ -0,0 +1,15 @@ +entity test is +end entity; + +architecture a of test is + function fun(var : boolean) return boolean is + begin + return var; + end function; +begin + main : process + constant c : boolean := fun; + begin + wait; + end process; +end architecture; diff --git a/testsuite/gna/ticket56/testsuite.sh b/testsuite/gna/ticket56/testsuite.sh new file mode 100755 index 0000000..fada702 --- /dev/null +++ b/testsuite/gna/ticket56/testsuite.sh @@ -0,0 +1,9 @@ +#! /bin/sh + +. ../../testenv.sh + +analyze_failure bug.vhdl + +clean + +echo "Test successful" |