Skip to content

Commit dafd5f5

Browse files
committed
docs(test): clarify downcast drop-glue fixture
1 parent 3e7211c commit dafd5f5

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

kmir/src/tests/unit/test_smir.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,10 @@ def test_function_tys(smir_file: Path, update_expected_output: bool) -> None:
4848

4949

5050
def test_call_edges_preserve_drop_glue_for_downcast_field() -> None:
51+
# This SMIR models:
52+
# local 1: Wrapper
53+
# Drop(local 1 . Downcast(0) . Field(0, Inner))
54+
# so `call_edges` must keep the reachable `std::ptr::drop_in_place::<Inner>` callee.
5155
smir_info = SMIRInfo(
5256
{
5357
'name': 'drop-downcast-field',

0 commit comments

Comments
 (0)