diff --git a/test/ctxlocal.asm b/test/ctxlocal.asm new file mode 100644 index 00000000..93e9fcae --- /dev/null +++ b/test/ctxlocal.asm @@ -0,0 +1,25 @@ +;; +;; 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