From 8365da6519d46d841aaef894aab17c4f27312703 Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Fri, 8 Jul 2016 19:17:16 +0200 Subject: Add new testcase. --- testsuite/gna/bug046/bug_pkg.vhdl | 19 +++++++++++++++++++ testsuite/gna/bug046/testsuite.sh | 9 +++++++++ 2 files changed, 28 insertions(+) create mode 100644 testsuite/gna/bug046/bug_pkg.vhdl create mode 100755 testsuite/gna/bug046/testsuite.sh (limited to 'testsuite/gna/bug046') 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" -- cgit v1.2.3