mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 18:22:07 +00:00
Add test case for block comments after line continuations
This commit is contained in:
18
test/asm/line-continuation-block-comment.asm
Normal file
18
test/asm/line-continuation-block-comment.asm
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
println 2 / 2
|
||||||
|
|
||||||
|
println 6 / \ ; comment
|
||||||
|
3
|
||||||
|
|
||||||
|
println 6 \ / ; comment
|
||||||
|
2
|
||||||
|
|
||||||
|
println 8 / /* hello
|
||||||
|
world */ 2
|
||||||
|
|
||||||
|
println 10 \ / 2
|
||||||
|
|
||||||
|
println 12 \ / /* hello
|
||||||
|
world */ 2
|
||||||
|
|
||||||
|
println 14 / \ /* hello
|
||||||
|
world */ 2
|
||||||
13
test/asm/line-continuation-block-comment.err
Normal file
13
test/asm/line-continuation-block-comment.err
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
error: line-continuation-block-comment.asm(6):
|
||||||
|
Invalid character after line continuation '/'
|
||||||
|
error: line-continuation-block-comment.asm(6):
|
||||||
|
syntax error, unexpected end of line
|
||||||
|
error: line-continuation-block-comment.asm(7):
|
||||||
|
syntax error, unexpected number
|
||||||
|
error: line-continuation-block-comment.asm(12):
|
||||||
|
Invalid character after line continuation '/'
|
||||||
|
error: line-continuation-block-comment.asm(14):
|
||||||
|
Invalid character after line continuation '/'
|
||||||
|
error: line-continuation-block-comment.asm(17):
|
||||||
|
Invalid character after line continuation '/'
|
||||||
|
Assembly aborted with 6 errors!
|
||||||
6
test/asm/line-continuation-block-comment.out
Normal file
6
test/asm/line-continuation-block-comment.out
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
$1
|
||||||
|
$2
|
||||||
|
$4
|
||||||
|
$5
|
||||||
|
$6
|
||||||
|
$7
|
||||||
Reference in New Issue
Block a user