| ... | ... | @@ -418,6 +418,9 @@ test "Type.Union from regular enum" { |
| 418 | 418 | } |
| 419 | 419 | |
| 420 | 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 | 424 | const foo = struct { |
| 422 | 425 | fn func(a: usize, b: bool) align(4) callconv(.C) usize { |
| 423 | 426 | return 0; |
| ... | ... | @@ -428,6 +431,9 @@ test "Type.Fn" { |
| 428 | 431 | } |
| 429 | 432 | |
| 430 | 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 | 437 | const TestStruct = packed struct { |
| 432 | 438 | pub fn foo(self: *const @This()) align(4) callconv(.Unspecified) void {} |
| 433 | 439 | }; |