commit a9db40e8704bd4f87b0770e2d72ba05b94afad1e (tree) parent b4e344bcf859f2df89637e0825a2e0e57d092ef6 Author: Andrew Kelley <andrew@ziglang.org> Date: Thu, 11 Feb 2021 23:53:04 -0700 zig fmt: add failing test case for inline/callconv conversion Diffstat:
| M | lib/std/zig/parser_test.zig | | | 20 | +++++++++++--------- |
1 file changed, 11 insertions(+), 9 deletions(-)
diff --git a/lib/std/zig/parser_test.zig b/lib/std/zig/parser_test.zig @@ -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(