forked from ziglang/zig
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request ziglang#16339 from r00ster91/ueficc
std.os.uefi: use std.os.uefi.cc instead of .C as calling convention
- Loading branch information
Showing
2 changed files
with
10 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,23 @@ | ||
fn foo(...) void {} | ||
fn bar(a: anytype, ...) callconv(a) void {} | ||
inline fn foo2(...) void {} | ||
|
||
comptime { | ||
_ = foo; | ||
} | ||
comptime { | ||
_ = bar; | ||
} | ||
comptime { | ||
_ = foo2; | ||
} | ||
|
||
// error | ||
// backend=stage2 | ||
// target=native | ||
// | ||
// :1:1: error: variadic function must have 'C' calling convention | ||
// :1:1: error: variadic function does not support '.Unspecified' calling convention | ||
// :1:1: note: supported calling conventions: '.C' | ||
// :2:1: error: generic function cannot be variadic | ||
// :1:1: error: variadic function does not support '.Inline' calling convention | ||
// :1:1: note: supported calling conventions: '.C' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters