From b08a9f61b0d1ebde548f30865519db689e0ee636 Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Thu, 26 Jan 2023 07:45:37 +0100 Subject: testsuite/gna: add a test for previous commit --- testsuite/gna/bug081/test_comp.vhdl | 8 ++++++++ testsuite/gna/bug081/testsuite.sh | 1 + 2 files changed, 9 insertions(+) create mode 100644 testsuite/gna/bug081/test_comp.vhdl diff --git a/testsuite/gna/bug081/test_comp.vhdl b/testsuite/gna/bug081/test_comp.vhdl new file mode 100644 index 000000000..d553eaaf7 --- /dev/null +++ b/testsuite/gna/bug081/test_comp.vhdl @@ -0,0 +1,8 @@ +package test_comp is + function log2 (v : natural) return natural; + + component my_comp is + generic (max : natural); + port (o : out bit_vector(log2(max) - 1 downto 0)); + end component; +end test_comp; diff --git a/testsuite/gna/bug081/testsuite.sh b/testsuite/gna/bug081/testsuite.sh index 96c1d80b9..a5de13f5e 100755 --- a/testsuite/gna/bug081/testsuite.sh +++ b/testsuite/gna/bug081/testsuite.sh @@ -5,6 +5,7 @@ analyze_failure -Werror=elaboration dummy.vhdl analyze_failure -Werror=elaboration elab_func.vhdl analyze_failure --std=08 -Werror=elaboration elab_prot.vhdl +analyze -Werror=elaboration test_comp.vhdl analyze dummy.vhdl elab_simulate_failure dummyentity -- cgit v1.2.3