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" {...@@ -418,6 +418,9 @@ test "Type.Union from regular enum" {
418}418}
419419
420test "Type.Fn" {420test "Type.Fn" {
421 // wasm doesn't support align attributes on functions
422 if (builtin.arch == .wasm32 or builtin.arch == .wasm64) return error.SkipZigTest;
423
421 const foo = struct {424 const foo = struct {
422 fn func(a: usize, b: bool) align(4) callconv(.C) usize {425 fn func(a: usize, b: bool) align(4) callconv(.C) usize {
423 return 0;426 return 0;
...@@ -428,6 +431,9 @@ test "Type.Fn" {...@@ -428,6 +431,9 @@ test "Type.Fn" {
428}431}
429432
430test "Type.BoundFn" {433test "Type.BoundFn" {
434 // wasm doesn't support align attributes on functions
435 if (builtin.arch == .wasm32 or builtin.arch == .wasm64) return error.SkipZigTest;
436
431 const TestStruct = packed struct {437 const TestStruct = packed struct {
432 pub fn foo(self: *const @This()) align(4) callconv(.Unspecified) void {}438 pub fn foo(self: *const @This()) align(4) callconv(.Unspecified) void {}
433 };439 };
test/stage1/behavior/type_info.zig+2
...@@ -266,6 +266,8 @@ const TestStruct = packed struct {...@@ -266,6 +266,8 @@ const TestStruct = packed struct {
266};266};
267267
268test "type info: function type info" {268test "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;
269 testFunction();271 testFunction();
270 comptime testFunction();272 comptime testFunction();
271}273}