mirror of
https://github.com/ziglang/zig.git
synced 2024-11-15 08:33:06 +00:00
small changes + align tests obviously shouldn't have passed
This commit is contained in:
parent
34684725aa
commit
ad4627ea3b
@ -842,7 +842,7 @@ pub const DeclGen = struct {
|
||||
.Array => {
|
||||
// We are referencing the array so it will decay to a C pointer.
|
||||
// NB: arrays are not really types in C so they are either specified in the declaration
|
||||
// or are already pointed to; our only job is to render the element's type.
|
||||
// or are already pointed to; our only job is to render the element type.
|
||||
return dg.renderType(w, t.elemType());
|
||||
},
|
||||
.Optional => {
|
||||
|
@ -2,7 +2,6 @@ const builtin = @import("builtin");
|
||||
|
||||
test {
|
||||
// Tests that pass for stage1, stage2, and the C backend.
|
||||
_ = @import("behavior/align.zig");
|
||||
_ = @import("behavior/basic.zig");
|
||||
_ = @import("behavior/bitcast.zig");
|
||||
_ = @import("behavior/bool.zig");
|
||||
@ -42,6 +41,7 @@ test {
|
||||
|
||||
if (builtin.object_format != .c) {
|
||||
// Tests that pass for stage1 and stage2 but not the C backend.
|
||||
_ = @import("behavior/align.zig");
|
||||
_ = @import("behavior/array.zig");
|
||||
_ = @import("behavior/atomics.zig");
|
||||
_ = @import("behavior/basic_llvm.zig");
|
||||
|
@ -32,9 +32,6 @@ test "int128" {
|
||||
|
||||
buff = minInt(i128);
|
||||
try expect(buff < 0);
|
||||
|
||||
// This should be uncommented once wrapping arithmetic is implemented for 128 bit ints:
|
||||
// try expect(buff < 0 and (buff -% 1) > 0)
|
||||
}
|
||||
|
||||
test "truncate int128" {
|
||||
|
Loading…
Reference in New Issue
Block a user