mirror of
https://github.com/cc65/cc65.git
synced 2025-01-03 01:31:55 +00:00
Added some tests.
This commit is contained in:
parent
b2aceaea24
commit
cc0db26e20
1
test/asm/listing/070-include-macro.inc
Normal file
1
test/asm/listing/070-include-macro.inc
Normal file
@ -0,0 +1 @@
|
||||
foo:
|
13
test/asm/listing/070-include-macro.s
Normal file
13
test/asm/listing/070-include-macro.s
Normal file
@ -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
test/asm/listing/070-include-repeat.inc
Normal file
1
test/asm/listing/070-include-repeat.inc
Normal file
@ -0,0 +1 @@
|
||||
.out "include file"
|
4
test/asm/listing/070-include-repeat.s
Normal file
4
test/asm/listing/070-include-repeat.s
Normal file
@ -0,0 +1,4 @@
|
||||
.repeat 3
|
||||
.include "070-include-repeat.inc"
|
||||
.out "main file"
|
||||
.endrepeat
|
1
test/asm/listing/ref/070-include-macro.err-ref
Normal file
1
test/asm/listing/ref/070-include-macro.err-ref
Normal file
@ -0,0 +1 @@
|
||||
bar::foo is defined
|
6
test/asm/listing/ref/070-include-repeat.err-ref
Normal file
6
test/asm/listing/ref/070-include-repeat.err-ref
Normal file
@ -0,0 +1,6 @@
|
||||
include file
|
||||
main file
|
||||
include file
|
||||
main file
|
||||
include file
|
||||
main file
|
Loading…
Reference in New Issue
Block a user