| ... | @@ -418,6 +418,9 @@ test "Type.Union from regular enum" { | ... | @@ -418,6 +418,9 @@ test "Type.Union from regular enum" { |
| 418 | } | 418 | } |
| 419 | | 419 | |
| 420 | test "Type.Fn" { | 420 | test "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 | } |
| 429 | | 432 | |
| 430 | test "Type.BoundFn" { | 433 | test "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 | }; |