From 96a151d4b83ea4148db4d13b5576897645209f46 Mon Sep 17 00:00:00 2001 From: Tadeo Kondrak Date: Thu, 24 Sep 2020 05:03:19 -0600 Subject: [PATCH] Skip @Type/@typeInfo Fn/BoundFn tests on wasm32/wasm64 --- test/stage1/behavior/type.zig | 6 ++++++ test/stage1/behavior/type_info.zig | 2 ++ 2 files changed, 8 insertions(+) diff --git a/test/stage1/behavior/type.zig b/test/stage1/behavior/type.zig index 936ed0486c4de224a1a2705f384c1a9dc98ad20c..60a23ffa944ffac76830a09fb9086fe5c172a9a2 100644 --- a/test/stage1/behavior/type.zig +++ b/test/stage1/behavior/type.zig @@ -418,6 +418,9 @@ test "Type.Union from regular enum" { } test "Type.Fn" { + // wasm doesn't support align attributes on functions + if (builtin.arch == .wasm32 or builtin.arch == .wasm64) return error.SkipZigTest; + const foo = struct { fn func(a: usize, b: bool) align(4) callconv(.C) usize { return 0; @@ -428,6 +431,9 @@ test "Type.Fn" { } test "Type.BoundFn" { + // wasm doesn't support align attributes on functions + if (builtin.arch == .wasm32 or builtin.arch == .wasm64) return error.SkipZigTest; + const TestStruct = packed struct { pub fn foo(self: *const @This()) align(4) callconv(.Unspecified) void {} }; diff --git a/test/stage1/behavior/type_info.zig b/test/stage1/behavior/type_info.zig index bb6dede96d70b4ed76c8c55757cba9798599f8e4..8b413bf031a361aa86fbf554b51a9dc03dd39ec9 100644 --- a/test/stage1/behavior/type_info.zig +++ b/test/stage1/behavior/type_info.zig @@ -266,6 +266,8 @@ const TestStruct = packed struct { }; test "type info: function type info" { + // wasm doesn't support align attributes on functions + if (builtin.arch == .wasm32 or builtin.arch == .wasm64) return error.SkipZigTest; testFunction(); comptime testFunction(); } -- 2.54.0