zig fmt: Keep callconv(.Inline) on function pointer types

Co-authored-by: Philipp Lühmann <mail@philipp.lu>
This commit is contained in:
Philipp Lühmann
2021-09-14 11:36:26 +02:00
committed by GitHub
parent 264acfdf3c
commit d1908c9f66
2 changed files with 6 additions and 3 deletions

View File

@@ -2879,6 +2879,9 @@ test "zig fmt: functions" {
\\pub export fn puts(s: *const u8) align(2 + 2) c_int;
\\pub inline fn puts(s: *const u8) align(2 + 2) c_int;
\\pub noinline fn puts(s: *const u8) align(2 + 2) c_int;
\\pub fn callInlineFn(func: fn () callconv(.Inline) void) void {
\\ func();
\\}
\\
);
}