Skip to content

Commit

Permalink
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
icculus committed Apr 9, 2009
1 parent f2c1943 commit 2617316
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions unit_tests/preprocessor/output/macro-1-arg-accepts-void
@@ -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()
@@ -0,0 +1 @@
RIGHT

0 comments on commit 2617316

Please sign in to comment.