discard block comments delimited with /* */

This commit is contained in:
anderoonies committed 2020-10-15 12:42:53 -04:00
1 parent 42b3a17356
commit 55be77be69
15 files changed
+65 -3

No files matched your search

@@ -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)!
Whitespace-only changes.
+5
View 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"
View File
Whitespace-only changes.
+3
View File
@@ -0,0 +1,3 @@
hi
block (/* ... */) comments at ends of line are fine
mutliline
+2
View 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
View File
@@ -0,0 +1,2 @@
warning: weird-comments.asm(2): [-Wnested-comment]
/* in block comment
+2
View File
@@ -0,0 +1,2 @@
this is not commented out
this is not commented out