# file : libbuild2/cc/lexer+comment.test.testscript # license : MIT; see accompanying LICENSE file # Test C and C++ comments. # : c-comment : $* <"';'" // /* ; // */ EOI : c-unterminated : $* <>EOE != 0 /* comment EOI :1:2: error: unterminated comment EOE : cxx-unterminated : $* <<:EOI // comment EOI : in-char-literal : $* <>EOO '//' '/*'*/ EOI EOO : in-string-literal : $* <>EOO "//foo" "/*"*/ EOI EOO : in-raw-string-literal : $* <>EOO R"X( // foo /* bar )X"*/ EOI EOO