Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added unit test for better coverage of bug I just fixed.
- 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 @@ | ||
// This should produce THIS_IS_THE_MACRO_ARG and not THIS_IS_THE_DEFINE. | ||
#define x THIS_IS_THE_DEFINE | ||
#define b(x) x | ||
#define z(x) b(x) | ||
z(THIS_IS_THE_MACRO_ARG) |
1 change: 1 addition & 0 deletions
1
unit_tests/preprocessor/output/macro-arg-overrides-define.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 @@ | ||
THIS_IS_THE_MACRO_ARG |