# file : build2/cc/lexer+comment.test.testscript # copyright : Copyright (c) 2014-2019 Code Synthesis Ltd # license : MIT; see accompanying LICENSE file # Test C and C++ comments. # : c-comment : $* <"';'" // /* ; // */ EOI : c-unterminated : $* <>EOE != 0 /* comment EOI stdin: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