diff options
| author | Andrew Kelley <superjoe30@gmail.com> | 2016-12-26 16:04:14 -0500 |
|---|---|---|
| committer | Andrew Kelley <superjoe30@gmail.com> | 2016-12-26 16:04:14 -0500 |
| commit | c8a7ab7eff0f261c47926cf0637e919d42e41940 (patch) | |
| tree | e06648c3784b8fdfcd626b34956565fccc5d7454 /test/self_hosted.zig | |
| parent | 7504be923b1721a5a5e094a306aad029887270e8 (diff) | |
| download | zig-c8a7ab7eff0f261c47926cf0637e919d42e41940.tar.gz zig-c8a7ab7eff0f261c47926cf0637e919d42e41940.zip | |
IR: pass cStringConcatenation test
Diffstat (limited to 'test/self_hosted.zig')
| -rw-r--r-- | test/self_hosted.zig | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/test/self_hosted.zig b/test/self_hosted.zig index a6d3bcc001..539d14a446 100644 --- a/test/self_hosted.zig +++ b/test/self_hosted.zig @@ -59,22 +59,6 @@ fn returnsTen() -> %i32 { } // TODO not passing -fn cStringConcatenation() { - @setFnTest(this, true); - - const a = c"OK" ++ c" IT " ++ c"WORKED"; - const b = c"OK IT WORKED"; - - const len = cstrlen(b); - const len_with_null = len + 1; - {var i: u32 = 0; while (i < len_with_null; i += 1) { - assert(a[i] == b[i]); - }} - assert(a[len] == 0); - assert(b[len] == 0); -} - -// TODO not passing fn castSliceToU8Slice() { @setFnTest(this); |
