
We support both single-line (//) and multi-line (/* ... */) comments and add a test for this, (trying to stress the rules just a bit by embedding one comment delimiter into a comment delimited with the other style, etc.). To keep the test suite passing we do now discard any output lines from glcpp that consist only of spacing, (in addition to blank lines as previously). We also discard any initial whitespace from gcc output. In neither case should the absence or presence of this whitespace affect correctness.
16 lines
203 B
C
16 lines
203 B
C
/* this is a comment */
|
|
// so is this
|
|
// */
|
|
f = g/**//h;
|
|
/*//*/l();
|
|
m = n//**/o
|
|
+ p;
|
|
/* this
|
|
comment spans
|
|
multiple lines and
|
|
contains *** stars
|
|
and slashes / *** /
|
|
and other stuff.
|
|
****/
|
|
more code here
|