mirror of
https://github.com/gbdev/rgbds.git
synced 2026-05-08 19:09:36 +00:00
discard block comments delimited with /* */
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
/* block comments containing /* throw warnings */
|
||||
PRINTT "reachable\n"
|
||||
@@ -0,0 +1,2 @@
|
||||
warning: block-comment-contents-error.asm(1): [-Wnested-comment]
|
||||
/* in block comment
|
||||
@@ -0,0 +1 @@
|
||||
reachable
|
||||
@@ -0,0 +1 @@
|
||||
PRINTT /* block comments must terminate before EOF
|
||||
@@ -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,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,0 +1,3 @@
|
||||
hi
|
||||
block (/* ... */) comments at ends of line are fine
|
||||
mutliline
|
||||
@@ -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"
|
||||
@@ -0,0 +1,2 @@
|
||||
warning: weird-comments.asm(2): [-Wnested-comment]
|
||||
/* in block comment
|
||||
@@ -0,0 +1,2 @@
|
||||
this is not commented out
|
||||
this is not commented out
|
||||
Reference in New Issue
Block a user