Skip to content

Commit

Permalink
Assert array dynamic or static
Browse files Browse the repository at this point in the history
  • Loading branch information
Troublor committed Apr 2, 2023
1 parent b3a24f9 commit 4768a08
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/test_ssa_generation.py
Original file line number Diff line number Diff line change
Expand Up @@ -1097,10 +1097,13 @@ def test_issue_1776():
new_op = operations[0]
lvalue = new_op.lvalue
lvalue_type = lvalue.type
assert lvalue_type.is_dynamic
assert isinstance(lvalue_type, ArrayType)
lvalue_type1 = lvalue_type.type
assert not lvalue_type1.is_dynamic
assert isinstance(lvalue_type1, ArrayType)
assert lvalue_type1.length_value.value == "10"
lvalue_type2 = lvalue_type1.type
assert not lvalue_type2.is_dynamic
assert isinstance(lvalue_type2, ArrayType)
assert lvalue_type2.length_value.value == "5"

0 comments on commit 4768a08

Please sign in to comment.