# A program that leaves more than 16 elements on the stack fails at program end.
# The debugger surfaces the VM error rather than reporting success.
#
# RUN: compile-masm %S/error.masm -o %t.masp
# RUN: miden-debug --commands %s %t.masp 2>&1 | filecheck %s
continue
backtrace
frame 0
# CHECK: Program terminated with error: stack should have at most 16 elements
# CHECK: Backtrace (1 frames):
# CHECK-NEXT: * #0 $exec::$main at {{.*}}error.masm:6:5
# CHECK: at {{.*}}error.masm:6:5 in $exec::$main