Issue#1251: Updated test file to exercise corner case

This commit is contained in:
Jukka Hertzog 2024-11-05 14:46:02 +00:00 committed by GitHub
parent b8e77e794a
commit 1455a0839e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 25 additions and 0 deletions

View File

@ -114,6 +114,31 @@ architecture rtl of test is
end function my_func;
function my_func return integer is
constant con : integer := PARAM1;
variable var : integer := PARAM4;
begin
-- PARAM1
sig <= PARAM1 + PARAM2;
var := PARAM1 + PARAM2;
sig <= PARAM1 when true else PARAM2;
var := PARAM1 when true else PARAM2;
with PARAM5 select PARAM4 :=
PARAM1 when 1,
PARAM2 when 0,
PARAM3 when others;
with PARAM4 select PARAM5 <=
PARAM1 when 1,
PARAM2 when 0,
PARAM3 when others;
return PARAM1;
end function my_func;
begin
end architecture rtl;