diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2022-01-23 18:31:55 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-01-23 18:31:55 -0500 |
| commit | 12c2de6ee205857e9ca0bcef4aa4d901fc5cc772 (patch) | |
| tree | 491f15df20182f428a92533e8efc2530c73c9dc2 /test | |
| parent | f1b91bb41b2d810ecabf4c69cad91b24b3846b77 (diff) | |
| parent | 8a697262099d64b2ff222dc9271493fe3b5f2b76 (diff) | |
| download | zig-12c2de6ee205857e9ca0bcef4aa4d901fc5cc772.tar.gz zig-12c2de6ee205857e9ca0bcef4aa4d901fc5cc772.zip | |
Merge pull request #10662 from ziglang/doc-comments-zir
Doc comments zir
Diffstat (limited to 'test')
| -rw-r--r-- | test/behavior/cast_llvm.zig | 4 | ||||
| -rw-r--r-- | test/behavior/inttoptr.zig | 3 |
2 files changed, 6 insertions, 1 deletions
diff --git a/test/behavior/cast_llvm.zig b/test/behavior/cast_llvm.zig index 57413df920..1b27d10d59 100644 --- a/test/behavior/cast_llvm.zig +++ b/test/behavior/cast_llvm.zig @@ -1,8 +1,9 @@ +const builtin = @import("builtin"); const std = @import("std"); const expect = std.testing.expect; const mem = std.mem; const maxInt = std.math.maxInt; -const native_endian = @import("builtin").target.cpu.arch.endian(); +const native_endian = builtin.target.cpu.arch.endian(); test "pointer reinterpret const float to int" { // The hex representation is 0x3fe3333333333303. @@ -46,6 +47,7 @@ fn incrementVoidPtrArray(array: ?*anyopaque, len: usize) void { } test "compile time int to ptr of function" { + if (builtin.zig_backend == .stage2_llvm and builtin.cpu.arch == .aarch64) return error.SkipZigTest; // TODO try foobar(FUNCTION_CONSTANT); } diff --git a/test/behavior/inttoptr.zig b/test/behavior/inttoptr.zig index 7c07a63b7c..ec26a09699 100644 --- a/test/behavior/inttoptr.zig +++ b/test/behavior/inttoptr.zig @@ -1,4 +1,7 @@ +const builtin = @import("builtin"); + test "casting random address to function pointer" { + if (builtin.zig_backend == .stage2_llvm and builtin.cpu.arch == .aarch64) return error.SkipZigTest; // TODO randomAddressToFunction(); comptime randomAddressToFunction(); } |
