Skip to content

Commit

Permalink
Added some tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
kugelfuhr committed Sep 1, 2024
1 parent b2aceae commit cc0db26
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 0 deletions.
1 change: 1 addition & 0 deletions test/asm/listing/070-include-macro.inc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
foo:
13 changes: 13 additions & 0 deletions test/asm/listing/070-include-macro.s
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
.macro IncludeFile FilePath
.proc bar
.include FilePath
.endproc
.endmacro

IncludeFile "070-include-macro.inc"

.ifdef bar::foo
.out "bar::foo is defined"
.else
.out "bar::foo is undefined"
.endif
1 change: 1 addition & 0 deletions test/asm/listing/070-include-repeat.inc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.out "include file"
4 changes: 4 additions & 0 deletions test/asm/listing/070-include-repeat.s
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.repeat 3
.include "070-include-repeat.inc"
.out "main file"
.endrepeat
1 change: 1 addition & 0 deletions test/asm/listing/ref/070-include-macro.err-ref
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
bar::foo is defined
6 changes: 6 additions & 0 deletions test/asm/listing/ref/070-include-repeat.err-ref
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
include file
main file
include file
main file
include file
main file

0 comments on commit cc0db26

Please sign in to comment.