We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9ef5900 commit a03d864Copy full SHA for a03d864
1 file changed
test.cpp
@@ -1182,6 +1182,15 @@ static void pragma_backslash()
1182
ASSERT_EQUALS("", preprocess(code, &outputList));
1183
}
1184
1185
+static void pragma_backslash_2() // #217
1186
+{
1187
+ const char code[] = "#pragma comment(linker, \"foo \\\n"
1188
+ "bar\")\n";
1189
+
1190
+ simplecpp::OutputList outputList;
1191
+ ASSERT_EQUALS("", preprocess(code, &outputList));
1192
+}
1193
1194
static void dollar()
1195
{
1196
ASSERT_EQUALS("$ab", readfile("$ab"));
@@ -3728,6 +3737,7 @@ int main(int argc, char **argv)
3728
3737
TEST_CASE(define_va_opt_9); // #632
3729
3738
3730
3739
TEST_CASE(pragma_backslash); // multiline pragma directive
3740
+ TEST_CASE(pragma_backslash_2); // #217
3731
3741
3732
3742
// UB: #ifdef as macro parameter
3733
3743
TEST_CASE(define_ifdef);
0 commit comments