| 1 | extern fn Text(str: []const u8, num: i32) callconv(.c) void; |
| 2 | export fn entry() void { |
| 3 | Text(undefined, undefined); |
| 4 | } |
| 5 | |
| 6 | // error |
| 7 | // target=x86_64-linux |
| 8 | // |
| 9 | // :1:16: error: parameter of type '[]const u8' not allowed in function with calling convention 'x86_64_sysv' |
| 10 | // :1:16: note: slices have no guaranteed in-memory representation |