From 9890c3b761468eda5cb1565e93c851bedccd66d5 Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Sat, 9 May 2015 22:02:12 +0200 Subject: File ticket41 testcase. --- testsuite/gna/ticket41/bug.vhdl | 16 ++++++++++++++++ testsuite/gna/ticket41/bug1.vhdl | 14 ++++++++++++++ testsuite/gna/ticket41/testsuite.sh | 10 ++++++++++ 3 files changed, 40 insertions(+) create mode 100644 testsuite/gna/ticket41/bug.vhdl create mode 100644 testsuite/gna/ticket41/bug1.vhdl create mode 100755 testsuite/gna/ticket41/testsuite.sh diff --git a/testsuite/gna/ticket41/bug.vhdl b/testsuite/gna/ticket41/bug.vhdl new file mode 100644 index 0000000..8c4e4a9 --- /dev/null +++ b/testsuite/gna/ticket41/bug.vhdl @@ -0,0 +1,16 @@ +package pkg is + procedure proc; + alias prog_alias is proc[]; +end package; + +package body pkg is + procedure proc is + begin + end; + + impure function prog_alias return integer is + begin + prog_alias; + return 0; + end; +end package body; diff --git a/testsuite/gna/ticket41/bug1.vhdl b/testsuite/gna/ticket41/bug1.vhdl new file mode 100644 index 0000000..958437c --- /dev/null +++ b/testsuite/gna/ticket41/bug1.vhdl @@ -0,0 +1,14 @@ +entity bug1 is + +end bug1; + +architecture behav of bug1 is + constant c : natural := 5; + function c return natural is + begin + return 7; + end; +begin -- behav + + +end behav; diff --git a/testsuite/gna/ticket41/testsuite.sh b/testsuite/gna/ticket41/testsuite.sh new file mode 100755 index 0000000..3d048d5 --- /dev/null +++ b/testsuite/gna/ticket41/testsuite.sh @@ -0,0 +1,10 @@ +#! /bin/sh + +. ../../testenv.sh + +analyze bug.vhdl +analyze_failure bug1.vhdl + +clean + +echo "Test successful" -- cgit