summaryrefslogtreecommitdiff
path: root/test/nasmformat.asm
diff options
context:
space:
mode:
Diffstat (limited to 'test/nasmformat.asm')
-rw-r--r--test/nasmformat.asm17
1 files changed, 17 insertions, 0 deletions
diff --git a/test/nasmformat.asm b/test/nasmformat.asm
new file mode 100644
index 0000000..ea19b92
--- /dev/null
+++ b/test/nasmformat.asm
@@ -0,0 +1,17 @@
+;Testname=obj; Arguments=-fobj -onasmfomat.o; Files=stdout stderr nasmfomat.o
+;Testname=bin; Arguments=-fbin -onasmfomat.o; Files=stdout stderr nasmfomat.o
+;Testname=rdf; Arguments=-frdf -onasmfomat.o; Files=stdout stderr nasmfomat.o
+
+%if __OUTPUT_FORMAT__ == 'bin'
+
+db 'This is binary format file'
+
+%elif __OUTPUT_FORMAT__ == 'obj'
+
+db 'This is object format file'
+
+%else
+
+db 'This is some other format file'
+
+%endif