nasm/test/prefixsym.asm
H. Peter Anvin 0209ecb179 test: add a test for symbol prefixes via %pragma
Add a test for symbol prefixes via %pragma, including overlapping
directives.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
2019-09-30 13:30:15 -07:00

23 lines
317 B
NASM

; The FIRST definition of prefixes win, so more specific first
%pragma win64 gprefix W64_
%pragma win gprefix W_
%pragma elf gprefix
%pragma elf lprefix .L.
%pragma output gprefix _
%pragma output lprefix L.
extern malloc
global call_malloc
call_malloc:
call malloc
ret
myfunc:
jmp call_malloc