diff options
author | Tristan Gingold <tgingold@free.fr> | 2016-07-08 19:17:16 +0200 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2016-07-09 19:51:30 +0200 |
commit | 8365da6519d46d841aaef894aab17c4f27312703 (patch) | |
tree | 361f832071bd0846e8e8ee3f5097a870a3026447 /testsuite/gna/bug046 | |
parent | 6cfcd2e1baf314842714618adff16504a3f73789 (diff) | |
download | ghdl-8365da6519d46d841aaef894aab17c4f27312703.tar.gz ghdl-8365da6519d46d841aaef894aab17c4f27312703.tar.bz2 ghdl-8365da6519d46d841aaef894aab17c4f27312703.zip |
Add new testcase.
Diffstat (limited to 'testsuite/gna/bug046')
-rw-r--r-- | testsuite/gna/bug046/bug_pkg.vhdl | 19 | ||||
-rwxr-xr-x | testsuite/gna/bug046/testsuite.sh | 9 |
2 files changed, 28 insertions, 0 deletions
diff --git a/testsuite/gna/bug046/bug_pkg.vhdl b/testsuite/gna/bug046/bug_pkg.vhdl new file mode 100644 index 000000000..9c00476ab --- /dev/null +++ b/testsuite/gna/bug046/bug_pkg.vhdl @@ -0,0 +1,19 @@ +package bug_pkg is + procedure proc_bug(constant t : in time := 8.68 us); + procedure proc_ok1(constant t : in time); + procedure proc_ok2(constant t : in integer := 5); +end bug_pkg; + +package body bug_pkg is + procedure proc_bug(constant t : in time := 8.68 us) is + begin + end proc_bug; + + procedure proc_ok1(constant t : in time) is + begin + end proc_ok1; + + procedure proc_ok2(constant t : in integer := 5) is + begin + end proc_ok2; +end bug_pkg; diff --git a/testsuite/gna/bug046/testsuite.sh b/testsuite/gna/bug046/testsuite.sh new file mode 100755 index 000000000..6184caf3f --- /dev/null +++ b/testsuite/gna/bug046/testsuite.sh @@ -0,0 +1,9 @@ +#! /bin/sh + +. ../../testenv.sh + +analyze bug_pkg.vhdl + +clean + +echo "Test successful" |