From ce20b6aa4833c0de74b1c617a999622b82357fa9 Mon Sep 17 00:00:00 2001 From: Joshua Bell Date: Fri, 22 Aug 2025 09:57:45 -0700 Subject: [PATCH] Explain the expected failures in 311 --- test/asm/listing/311-close-new-scopes-error.s | 7 +++++++ test/asm/listing/ref/311-close-new-scopes-error.err2-ref | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) 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