| ... | ... | @@ -1260,11 +1260,11 @@ pub fn addCases(cases: *tests.TranslateCContext) void { |
| 1260 | 1260 | \\void __attribute__((cdecl)) foo4(float *a); |
| 1261 | 1261 | \\void __attribute__((thiscall)) foo5(float *a); |
| 1262 | 1262 | , &[_][]const u8{ |
| 1263 | | \\pub fn foo1(a: [*c]f32) callconv(.Fastcall) void; |
| 1264 | | \\pub fn foo2(a: [*c]f32) callconv(.Stdcall) void; |
| 1265 | | \\pub fn foo3(a: [*c]f32) callconv(.Vectorcall) void; |
| 1263 | \\pub extern fn foo1(a: [*c]f32) callconv(.Fastcall) void; |
| 1264 | \\pub extern fn foo2(a: [*c]f32) callconv(.Stdcall) void; |
| 1265 | \\pub extern fn foo3(a: [*c]f32) callconv(.Vectorcall) void; |
| 1266 | 1266 | \\pub extern fn foo4(a: [*c]f32) void; |
| 1267 | | \\pub fn foo5(a: [*c]f32) callconv(.Thiscall) void; |
| 1267 | \\pub extern fn foo5(a: [*c]f32) callconv(.Thiscall) void; |
| 1268 | 1268 | }); |
| 1269 | 1269 | |
| 1270 | 1270 | cases.addWithTarget("Calling convention", CrossTarget.parse(.{ |
| ... | ... | @@ -1274,8 +1274,8 @@ pub fn addCases(cases: *tests.TranslateCContext) void { |
| 1274 | 1274 | \\void __attribute__((pcs("aapcs"))) foo1(float *a); |
| 1275 | 1275 | \\void __attribute__((pcs("aapcs-vfp"))) foo2(float *a); |
| 1276 | 1276 | , &[_][]const u8{ |
| 1277 | | \\pub fn foo1(a: [*c]f32) callconv(.AAPCS) void; |
| 1278 | | \\pub fn foo2(a: [*c]f32) callconv(.AAPCSVFP) void; |
| 1277 | \\pub extern fn foo1(a: [*c]f32) callconv(.AAPCS) void; |
| 1278 | \\pub extern fn foo2(a: [*c]f32) callconv(.AAPCSVFP) void; |
| 1279 | 1279 | }); |
| 1280 | 1280 | |
| 1281 | 1281 | cases.addWithTarget("Calling convention", CrossTarget.parse(.{ |
| ... | ... | @@ -1284,7 +1284,7 @@ pub fn addCases(cases: *tests.TranslateCContext) void { |
| 1284 | 1284 | }) catch unreachable, |
| 1285 | 1285 | \\void __attribute__((aarch64_vector_pcs)) foo1(float *a); |
| 1286 | 1286 | , &[_][]const u8{ |
| 1287 | | \\pub fn foo1(a: [*c]f32) callconv(.Vectorcall) void; |
| 1287 | \\pub extern fn foo1(a: [*c]f32) callconv(.Vectorcall) void; |
| 1288 | 1288 | }); |
| 1289 | 1289 | |
| 1290 | 1290 | cases.add("Parameterless function prototypes", |