From bb151c2bd6f6ab39c70c92828c4591ddb6a594a4 Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Sun, 16 Sep 2018 06:56:15 +0200 Subject: Add testcase #652 --- testsuite/gna/issue652/ent.vhdl | 35 +++++++++++++++++++++++++++++++++++ testsuite/gna/issue652/testsuite.sh | 9 +++++++++ 2 files changed, 44 insertions(+) create mode 100644 testsuite/gna/issue652/ent.vhdl create mode 100755 testsuite/gna/issue652/testsuite.sh (limited to 'testsuite') diff --git a/testsuite/gna/issue652/ent.vhdl b/testsuite/gna/issue652/ent.vhdl new file mode 100644 index 000000000..00757ae13 --- /dev/null +++ b/testsuite/gna/issue652/ent.vhdl @@ -0,0 +1,35 @@ +entity clock_Generator is + port ( + Clock : out bit + ); +end entity; + +entity clock_Monitor is + port ( + Clock : in bit + ); +end entity; + +package clock is +end package; + + +library Clock; +use Clock.clock.all; + +entity test is +end entity; + +architecture tb of test is + signal Clock : bit; +begin + gen: entity Clock.clock_Generator + port map ( + Clock => Clock + ); + + mon: entity Clock.clock_Monitor + port map ( + Clock => Clock + ); +end architecture; diff --git a/testsuite/gna/issue652/testsuite.sh b/testsuite/gna/issue652/testsuite.sh new file mode 100755 index 000000000..4ffa83126 --- /dev/null +++ b/testsuite/gna/issue652/testsuite.sh @@ -0,0 +1,9 @@ +#! /bin/sh + +. ../../testenv.sh + +analyze_failure --work=clock ent.vhdl + +clean + +echo "Test successful" -- cgit v1.2.3