mirror of
https://github.com/netwide-assembler/nasm.git
synced 2024-11-21 03:14:19 +08:00
59242bd10a
Add a simple test case for context-local (%$) labels not disturbing the local variable namespace, and extern labels getting promoted to global. Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
26 lines
254 B
NASM
26 lines
254 B
NASM
;;
|
|
;; Test of context-local labels
|
|
;;
|
|
|
|
bits 64
|
|
extern everywhere ; Test of extern -> global promotion, too
|
|
extern tjosan
|
|
here:
|
|
jz .there
|
|
%push foo
|
|
jo %$mordor
|
|
hlt
|
|
%$mordor:
|
|
nop
|
|
%pop
|
|
.there:
|
|
ret
|
|
|
|
everywhere:
|
|
ret
|
|
|
|
global everywhere
|
|
|
|
tjosan:
|
|
ret
|