authorgravatar for me@tadeo.caTadeo Kondrak <me@tadeo.ca> 2020-09-24 05:03:19-06:00
committergravatar for me@tadeo.caTadeo Kondrak <me@tadeo.ca> 2020-10-01 18:01:40-06:00
log96a151d4b83ea4148db4d13b5576897645209f46
tree4c949361fd23996eaa57d6269c660b15d86f73c7
parente18fdc12b06cb904814700a96dce5ba419d08364
signaturelock-open Commit is signed but in an unrecognized format.

Skip @Type/@typeInfo Fn/BoundFn tests on wasm32/wasm64


2 files changed, 8 insertions(+), 0 deletions(-)

test/stage1/behavior/type.zig+6
......@@ -418,6 +418,9 @@ test "Type.Union from regular enum" {
418418}
419419
420420test "Type.Fn" {
421 // wasm doesn't support align attributes on functions
422 if (builtin.arch == .wasm32 or builtin.arch == .wasm64) return error.SkipZigTest;
423
421424 const foo = struct {
422425 fn func(a: usize, b: bool) align(4) callconv(.C) usize {
423426 return 0;
......@@ -428,6 +431,9 @@ test "Type.Fn" {
428431}
429432
430433test "Type.BoundFn" {
434 // wasm doesn't support align attributes on functions
435 if (builtin.arch == .wasm32 or builtin.arch == .wasm64) return error.SkipZigTest;
436
431437 const TestStruct = packed struct {
432438 pub fn foo(self: *const @This()) align(4) callconv(.Unspecified) void {}
433439 };
test/stage1/behavior/type_info.zig+2
......@@ -266,6 +266,8 @@ const TestStruct = packed struct {
266266};
267267
268268test "type info: function type info" {
269 // wasm doesn't support align attributes on functions
270 if (builtin.arch == .wasm32 or builtin.arch == .wasm64) return error.SkipZigTest;
269271 testFunction();
270272 comptime testFunction();
271273}