test: add test for %pragma list options and __?LIST_OPTIONS*?__

A simple test for tweaking the list options from the source code.

Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
This commit is contained in:
H. Peter Anvin (Intel) 2026-06-28 20:35:56 -07:00
parent 27500eee7f
commit 47f1cd8ede

35
test/listing.asm Normal file
View file

@ -0,0 +1,35 @@
%pragma list options +t
times 16 db '.'
db 10
db __?LIST_OPTIONS?__, 10
db __?LIST_OPTIONS_DEFAULT?__, 10
%pragma list options *t
times 16 db '.'
db 10
db __?LIST_OPTIONS?__, 10
db __?LIST_OPTIONS_DEFAULT?__, 10
%pragma list options -"t" "-bd"
times 16 db '.'
db 10
db __?LIST_OPTIONS?__, 10
db __?LIST_OPTIONS_DEFAULT?__, 10
%pragma list options -! +__?LIST_OPTIONS_DEFAULT?__
times 16 db '.'
db 10
db __?LIST_OPTIONS?__, 10
db __?LIST_OPTIONS_DEFAULT?__, 10
%pragma list options +"t"
times 16 db '.'
db 10
db __?LIST_OPTIONS?__, 10
db __?LIST_OPTIONS_DEFAULT?__, 10
%pragma list options *!
times 16 db '.'
db 10
db __?LIST_OPTIONS?__, 10
db __?LIST_OPTIONS_DEFAULT?__, 10