2 void test_c_comments() {
3 test_parser_verify_parse(
4 test_parser_sourcefile("c", " //comment"),
5 "c", "", "//comment", 0
9 void test_c_empty_comments() {
10 test_parser_verify_parse(
11 test_parser_sourcefile("c", " //\n"),
16 void test_c_block_comment() {
17 test_parser_verify_parse(
18 test_parser_sourcefile("c", "/*c*/"),
23 void test_c_comment_entities() {
24 test_parser_verify_entity(
25 test_parser_sourcefile("c", " //comment"),
26 "comment", "//comment"
28 test_parser_verify_entity(
29 test_parser_sourcefile("c", " /*comment*/"),
30 "comment", "/*comment*/"
36 test_c_empty_comments();
37 test_c_block_comment();
38 test_c_comment_entities();