3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-08-03 01:40:23 +00:00

raise_error: Extra test

This commit is contained in:
Krystine Sherwin 2025-08-02 14:54:32 +12:00
parent 895dfd963f
commit f78cd9d13f
No known key found for this signature in database

View file

@ -26,6 +26,12 @@ bugpoint -suffix error -yosys ../../yosys -command raise_error -expect-return 7
select -assert-mod-count 1 =* select -assert-mod-count 1 =*
select -assert-mod-count 1 top select -assert-mod-count 1 top
# raise_error -always still uses 'raise_error' attribute if possible
design -load read
bugpoint -suffix error -yosys ../../yosys -command "raise_error -always" -expect-return 7
select -assert-mod-count 1 =*
select -assert-mod-count 1 top
# raise_error with string prints message and exits with 1 # raise_error with string prints message and exits with 1
design -load read design -load read
rename top abc rename top abc