diff options
Diffstat (limited to 'test/run_tests.cpp')
| -rw-r--r-- | test/run_tests.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/run_tests.cpp b/test/run_tests.cpp index 812484b463..16b555f4ad 100644 --- a/test/run_tests.cpp +++ b/test/run_tests.cpp @@ -1731,6 +1731,15 @@ struct type { )SOURCE", 2, R"(export struct struct_type { @"defer": c_int, })", R"(pub const @"type" = struct_type;)"); + + add_parseh_case("macro defines string literal with octal", R"SOURCE( +#define FOO "aoeu\023 derp" +#define FOO2 "aoeu\0234 derp" +#define FOO_CHAR '\077' + )SOURCE", 3, + R"(pub const FOO = c"aoeu\x13 derp")", + R"(pub const FOO2 = c"aoeu\x134 derp")", + R"(pub const FOO_CHAR = '\x3f')"); } static void run_self_hosted_test(bool is_release_mode) { |
