mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 10:12:06 +00:00
discard block comments delimited with /* */
This commit is contained in:
2
test/asm/block-comment-contents-error.asm
Normal file
2
test/asm/block-comment-contents-error.asm
Normal file
@@ -0,0 +1,2 @@
|
||||
/* block comments containing /* throw warnings */
|
||||
PRINTT "reachable\n"
|
||||
2
test/asm/block-comment-contents-error.err
Normal file
2
test/asm/block-comment-contents-error.err
Normal file
@@ -0,0 +1,2 @@
|
||||
warning: block-comment-contents-error.asm(1): [-Wnested-comment]
|
||||
/* in block comment
|
||||
1
test/asm/block-comment-contents-error.out
Normal file
1
test/asm/block-comment-contents-error.out
Normal file
@@ -0,0 +1 @@
|
||||
reachable
|
||||
1
test/asm/block-comment-termination-error.asm
Normal file
1
test/asm/block-comment-termination-error.asm
Normal file
@@ -0,0 +1 @@
|
||||
PRINTT /* block comments must terminate before EOF
|
||||
5
test/asm/block-comment-termination-error.err
Normal file
5
test/asm/block-comment-termination-error.err
Normal file
@@ -0,0 +1,5 @@
|
||||
ERROR: block-comment-termination-error.asm(1):
|
||||
Unterminated block comment
|
||||
ERROR: block-comment-termination-error.asm(1):
|
||||
syntax error
|
||||
error: Assembly aborted (2 errors)!
|
||||
0
test/asm/block-comment-termination-error.out
Normal file
0
test/asm/block-comment-termination-error.out
Normal file
5
test/asm/block-comment.asm
Normal file
5
test/asm/block-comment.asm
Normal file
@@ -0,0 +1,5 @@
|
||||
PRINTT /* block comments are ignored // ** */ "hi\n"
|
||||
PRINTT "block (/* ... */) comments at ends of line are fine\n" /* hi */
|
||||
PRINTT /* block comments
|
||||
can span multiple lines
|
||||
*/ "mutliline\n"
|
||||
0
test/asm/block-comment.err
Normal file
0
test/asm/block-comment.err
Normal file
3
test/asm/block-comment.out
Normal file
3
test/asm/block-comment.out
Normal file
@@ -0,0 +1,3 @@
|
||||
hi
|
||||
block (/* ... */) comments at ends of line are fine
|
||||
mutliline
|
||||
2
test/asm/weird-comments.asm
Normal file
2
test/asm/weird-comments.asm
Normal file
@@ -0,0 +1,2 @@
|
||||
PRINTT /* // PRINTT "this is **comm //ented out\n" */ "this is not commented out\n"
|
||||
PRINTT /*//*/ "this is not commented out\n"
|
||||
2
test/asm/weird-comments.err
Normal file
2
test/asm/weird-comments.err
Normal file
@@ -0,0 +1,2 @@
|
||||
warning: weird-comments.asm(2): [-Wnested-comment]
|
||||
/* in block comment
|
||||
2
test/asm/weird-comments.out
Normal file
2
test/asm/weird-comments.out
Normal file
@@ -0,0 +1,2 @@
|
||||
this is not commented out
|
||||
this is not commented out
|
||||
Reference in New Issue
Block a user