pike.git/
src/
testsuite.in
Branch:
Tag:
Non-build tags
All tags
No tags
2016-09-07
2016-09-07 10:43:50 by Henrik Grubbström (Grubba) <grubba@grubba.org>
f7024440075a69b8e45b8204ad4922be7df6bcbc (
5
lines) (+
5
/-
0
)
[
Show
|
Annotate
]
Branch:
8.0
Compiler
[cpp]
: Fixed stringify operator on strings with quotes.
9512:
test_eq([[cpp("\\\n")]], "#line 1 \"-\"\n\n") test_eq([[cpp("#if 1\\\n-1\nfoo\n#endif\n")]], "#line 1 \"-\"\n\n\n\n\n") test_any([[
+
#define TOSTR(X) #X
+
return TOSTR(FOO "String with \\ and \" and space" BAR);
+
]], "FOO \"String with \\\\ and \\\" and space" BAR")
+
test_any([[
Stdio.write_file("testsuite_test.h", ""); return compile_string(#" #include \"\\