You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 2a51846
Browse filesBrowse the repository at this point in the historyBrowse files
TODO_ASSERT_EQUALS("file0,1,syntax_error,failed to expand 'cat', Invalid ## usage when expanding 'cat': Combining 'a' and '\"s\"' yields an invalid token.\n", "", toString(outputList));
2557
+
ASSERT_EQUALS("", preprocess(code, &outputList));
2558
+
ASSERT_EQUALS("file0,1,syntax_error,failed to expand 'cat', Invalid ## usage when expanding 'cat': Combining 'a' and '\"s\"' yields an invalid token.\n", toString(outputList));
2559
+
}
2560
+
2561
+
staticvoidhashhash_invalid_number_string()
2562
+
{
2563
+
constchar code[] =
2564
+
"#define cat(a,b) a##b\n"
2565
+
"cat(1,\"s\")\n";
2566
+
simplecpp::OutputList outputList;
2567
+
ASSERT_EQUALS("", preprocess(code, &outputList));
2568
+
ASSERT_EQUALS("file0,1,syntax_error,failed to expand 'cat', Invalid ## usage when expanding 'cat': Combining '1' and '\"s\"' yields an invalid token.\n", toString(outputList));
0 commit comments