diff --git a/test/asm/listing/311-close-new-scopes-error.s b/test/asm/listing/311-close-new-scopes-error.s index 72346b25a..2a0adf114 100644 --- a/test/asm/listing/311-close-new-scopes-error.s +++ b/test/asm/listing/311-close-new-scopes-error.s @@ -1,5 +1,12 @@ +;;; Regression test to ensure that newly inferred scopes are closed. + .scope foo start: + ;; Since `bar` is not a known scope at this point, it is + ;; inferred to be `::foo::bar`, and since `::foo::bar::start` + ;; does not exist this will produce an error. Importantly, + ;; it does not resolve to `::foo::start` which would be + ;; incorrect. jmp bar::start .endscope diff --git a/test/asm/listing/ref/311-close-new-scopes-error.err2-ref b/test/asm/listing/ref/311-close-new-scopes-error.err2-ref index ee60a497e..a93e6a7fc 100644 --- a/test/asm/listing/ref/311-close-new-scopes-error.err2-ref +++ b/test/asm/listing/ref/311-close-new-scopes-error.err2-ref @@ -1 +1 @@ -311-close-new-scopes-error.s:3: Error: Symbol 'start' is undefined +311-close-new-scopes-error.s:10: Error: Symbol 'start' is undefined