Skip to content

Commit

Permalink
fixed danmar#387 - do not undefine source-level defines via -U
Browse files Browse the repository at this point in the history
  • Loading branch information
firewave committed Nov 22, 2024
1 parent 8327672 commit fec7193
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2474,7 +2474,7 @@ static void userdef()
ASSERT_EQUALS("\n123", preprocess(code, dui));
}

static void userundef()
static void userundef_src()
{
const char code[] =
"#define A\n"
Expand Down Expand Up @@ -3136,6 +3136,7 @@ int main(int argc, char **argv)
TEST_CASE(undef);

TEST_CASE(userdef);
TEST_CASE(userundef_src);

// utf/unicode
TEST_CASE(utf8);
Expand Down

0 comments on commit fec7193

Please sign in to comment.