27 lines
527 B
Perl
27 lines
527 B
Perl
|
/* n_3.t: Handling of comment. */
|
||
|
|
||
|
/* 3.1: A comment is converted to one space. */
|
||
|
/* abc de */
|
||
|
abc/* comment */de
|
||
|
|
||
|
/* 3.2: // is not a comment of C. */
|
||
|
#if 0 /* This feature is obsolete now. */
|
||
|
/* // is not a comment of C */
|
||
|
// is not a comment of C
|
||
|
#endif
|
||
|
|
||
|
/* 3.3: Comment is parsed prior to the parsing of preprocessing directive. */
|
||
|
/* abcd */
|
||
|
#if 0
|
||
|
"nonsence"; /*
|
||
|
#else
|
||
|
still in
|
||
|
comment */
|
||
|
#else
|
||
|
#define MACRO_abcd /*
|
||
|
in comment
|
||
|
*/ abcd
|
||
|
#endif
|
||
|
MACRO_abcd
|
||
|
|