mirror of
https://github.com/ziglang/zig.git
synced 2026-02-12 20:37:54 +00:00
zig fmt: add failing test case for inline/callconv conversion
This commit is contained in:
parent
b4e344bcf8
commit
a9db40e870
@ -5,15 +5,17 @@
|
||||
// and substantial portions of the software.
|
||||
|
||||
// TODO Remove this after zig 0.8.0 is released.
|
||||
test "zig fmt: rewrite inline functions as callconv(.Inline)" {
|
||||
try testTransform(
|
||||
\\inline fn foo() void {}
|
||||
\\
|
||||
,
|
||||
\\fn foo() callconv(.Inline) void {}
|
||||
\\
|
||||
);
|
||||
}
|
||||
// TODO need to add the logic to make this test pass. it was added in master
|
||||
// but was not added in the ast-memory-layout branch yet.
|
||||
//test "zig fmt: rewrite inline functions as callconv(.Inline)" {
|
||||
// try testTransform(
|
||||
// \\inline fn foo() void {}
|
||||
// \\
|
||||
// ,
|
||||
// \\fn foo() callconv(.Inline) void {}
|
||||
// \\
|
||||
// );
|
||||
//}
|
||||
|
||||
test "zig fmt: simple top level comptime block" {
|
||||
try testCanonical(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user