pike.git/
src/
testsuite.in
Branch:
Tag:
Non-build tags
All tags
No tags
2016-09-07
2016-09-07 10:36:58 by Henrik Grubbström (Grubba) <grubba@grubba.org>
ddf300e1faabfdb781a4f2577f4a4f3900a8c451 (
5
lines) (+
5
/-
0
)
[
Show
|
Annotate
]
Branch:
8.1
Compiler
[cpp]
: Fixed stringify operator on strings with quotes.
9587:
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 \"\\