mirror of
https://github.com/netwide-assembler/nasm.git
synced 2024-11-27 08:10:07 +08:00
0209ecb179
Add a test for symbol prefixes via %pragma, including overlapping directives. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
23 lines
317 B
NASM
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
|