Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Added unit test to make sure x() is okay with #define x(a).
- Loading branch information
Showing
2 changed files
with
6 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
// x() should be considered one (blank) argument when there is a macro which | ||
// has one parameter. It should produce "RIGHT" and not "RIGHT()", and no | ||
// errors. | ||
#define x(a) RIGHT a | ||
x() |
1 change: 1 addition & 0 deletions
1
unit_tests/preprocessor/output/macro-1-arg-accepts-void.correct
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
RIGHT |