diff options
author | Tristan Gingold <tgingold@free.fr> | 2023-01-26 07:45:37 +0100 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2023-01-26 21:56:31 +0100 |
commit | b08a9f61b0d1ebde548f30865519db689e0ee636 (patch) | |
tree | be4b26477648f124835554402cfec1a168213f33 | |
parent | 05b878423c734323a4d2e498652f0b746c03c7e7 (diff) | |
download | ghdl-b08a9f61b0d1ebde548f30865519db689e0ee636.tar.gz ghdl-b08a9f61b0d1ebde548f30865519db689e0ee636.tar.bz2 ghdl-b08a9f61b0d1ebde548f30865519db689e0ee636.zip |
testsuite/gna: add a test for previous commit
-rw-r--r-- | testsuite/gna/bug081/test_comp.vhdl | 8 | ||||
-rwxr-xr-x | testsuite/gna/bug081/testsuite.sh | 1 |
2 files changed, 9 insertions, 0 deletions
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 |