From c8e807bf051b678dc6424c6c5004957399d1c377 Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Sun, 1 Mar 2015 06:53:20 +0100 Subject: Add test for ticket 38. --- testsuite/gna/ticket38/associate.vhdl | 32 ++++++++++++++++++++++++++++++++ testsuite/gna/ticket38/testsuite.sh | 10 ++++++++++ 2 files changed, 42 insertions(+) create mode 100644 testsuite/gna/ticket38/associate.vhdl create mode 100755 testsuite/gna/ticket38/testsuite.sh diff --git a/testsuite/gna/ticket38/associate.vhdl b/testsuite/gna/ticket38/associate.vhdl new file mode 100644 index 0000000..1d302ca --- /dev/null +++ b/testsuite/gna/ticket38/associate.vhdl @@ -0,0 +1,32 @@ + +entity test_ent is + port ( + input: integer + ); +end entity; + +architecture test of test_ent is + +begin + +end architecture; + +entity associate is +end entity; + +architecture test of associate is + component test_ent is + port ( + input: integer + ); + end component; +begin +gen_label: + for i in 0 to 11 generate + genx: + test_ent + port map ( + input => i + ); + end generate; +end architecture; diff --git a/testsuite/gna/ticket38/testsuite.sh b/testsuite/gna/ticket38/testsuite.sh new file mode 100755 index 0000000..e42bf6b --- /dev/null +++ b/testsuite/gna/ticket38/testsuite.sh @@ -0,0 +1,10 @@ +#! /bin/sh + +. ../../testenv.sh + +analyze associate.vhdl +elab_simulate associate + +clean + +echo "Test successful" -- cgit