diff options
| author | Andrew Kelley <superjoe30@gmail.com> | 2017-01-12 15:10:58 -0500 |
|---|---|---|
| committer | Andrew Kelley <superjoe30@gmail.com> | 2017-01-12 15:10:58 -0500 |
| commit | 18f248b94d1c936328058a6d67afe0003f022c5c (patch) | |
| tree | 3ebdde91c9a5156a145e58e737148afc37851d2c /test/run_tests.cpp | |
| parent | d7847053531c3352db8355e21e54b102958cbb8a (diff) | |
| download | zig-18f248b94d1c936328058a6d67afe0003f022c5c.tar.gz zig-18f248b94d1c936328058a6d67afe0003f022c5c.zip | |
IR: fix array concatenation
all tests passing
Diffstat (limited to 'test/run_tests.cpp')
| -rw-r--r-- | test/run_tests.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test/run_tests.cpp b/test/run_tests.cpp index e5badea1c8..2a9bb72670 100644 --- a/test/run_tests.cpp +++ b/test/run_tests.cpp @@ -1895,7 +1895,7 @@ extern char (*fn_ptr2)(int, float); add_parseh_case("#define string", AllowWarningsNo, R"SOURCE( #define foo "a string" - )SOURCE", 1, "pub const foo = c\"a string\";"); + )SOURCE", 1, "pub const foo: &const u8 = &(c str lit);"); add_parseh_case("__cdecl doesn't mess up function pointers", AllowWarningsNo, R"SOURCE( void foo(void (__cdecl *fn_ptr)(void)); @@ -1909,18 +1909,18 @@ void foo(void (__cdecl *fn_ptr)(void)); struct type { int defer; }; - )SOURCE", 2, R"(export struct struct_type { + )SOURCE", 2, R"(pub const struct_type = extern struct { @"defer": c_int, -})", R"(pub const @"type" = struct_type;)"); +};)", R"(pub const @"type" = struct_type;)"); add_parseh_case("macro defines string literal with octal", AllowWarningsNo, 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 = '?')"); + R"(pub const FOO: &const u8 = &(c str lit);)", + R"(pub const FOO2: &const u8 = &(c str lit);)", + R"(pub const FOO_CHAR = 63;)"); } static void run_self_hosted_test(bool is_release_mode) { |
