Skip to content

Commit

Permalink
Testcase for a multiline comment within a macro definition
Browse files Browse the repository at this point in the history
  • Loading branch information
ayourtch committed Aug 22, 2016
1 parent 0729c2a commit 8f64140
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions lcpp.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1721,6 +1721,17 @@ function lcpp.test(suppressMsg)
issue22 = __FILE__
issue24_1 = "issue 24: "
issue24_2 = "Related to multiline comment within a macro definition."
msg = issue24_1 ..
#define foo \
/* Comment here \
which spans lines */ \
"this should never appear in the output, " .. \
"but it does. " ..
issue24_2
assert(msg == issue24_1 .. issue24_2, msg)
local assertrue = function(val, msg)
assert(not val, msg)
end
Expand Down

0 comments on commit 8f64140

Please sign in to comment.