← Contribution overview

Drop foundation and block scopes ยท PR #4632

Add LIFO and nested-block tests

Merged

Objective

Add execute tests for LIFO order in one scope and inner-before-outer order in nested scopes.

Why it was needed

gccrs already produced the expected Drop order, but the testsuite did not check it.

Later local bindings must drop before earlier ones. Values in an inner block must drop before values in the outer block.

These tests record both rules.

Test cases

View PR on GitHub ← Contribution overview