| ... | ... | @@ -7445,4 +7445,20 @@ pub fn addCases(cases: *tests.CompileErrorContext) void { |
| 7445 | 7445 | , &[_][]const u8{ |
| 7446 | 7446 | ":2:75: error: operation caused overflow", |
| 7447 | 7447 | }); |
| 7448 | |
| 7449 | cases.addCase(x: { |
| 7450 | var tc = cases.create("align(N) expr function pointers is a compile error", |
| 7451 | \\export fn foo() align(1) void { |
| 7452 | \\ return; |
| 7453 | \\} |
| 7454 | , &[_][]const u8{ |
| 7455 | "tmp.zig:1:23: error: align(N) expr is not allowed on function prototypes in wasm32/wasm64", |
| 7456 | }); |
| 7457 | tc.target = std.zig.CrossTarget{ |
| 7458 | .cpu_arch = .wasm32, |
| 7459 | .os_tag = .freestanding, |
| 7460 | .abi = .none, |
| 7461 | }; |
| 7462 | break :x tc; |
| 7463 | }); |
| 7448 | 7464 | } |