We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 435528a commit d09bd3dCopy full SHA for d09bd3d
test/translate_c.zig
@@ -2266,7 +2266,7 @@ pub fn addCases(cases: *tests.TranslateCContext) void {
2266
\\ do {} while (0);
2267
\\}
2268
, &[_][]const u8{
2269
- \\pub fn foo() void {
+ \\pub fn foo() callconv(.C) void {
2270
\\ if (@as(c_int, 1) != 0) while (true) {
2271
\\ if (!(@as(c_int, 0) != 0)) break;
2272
\\ };
@@ -2358,9 +2358,9 @@ pub fn addCases(cases: *tests.TranslateCContext) void {
2358
\\void c(void) {}
2359
\\static void foo() {}
2360
2361
- \\pub fn a() void {}
2362
- \\pub fn b() void {}
+ \\pub fn a() callconv(.C) void {}
+ \\pub fn b() callconv(.C) void {}
2363
\\pub export fn c() void {}
2364
- \\pub fn foo() void {}
+ \\pub fn foo() callconv(.C) void {}
2365
});
2366
}
0 commit comments