| ... | ... | @@ -9,6 +9,18 @@ test "zig fmt: change @typeOf to @TypeOf" { |
| 9 | 9 | ); |
| 10 | 10 | } |
| 11 | 11 | |
| 12 | // TODO: Remove nakedcc/stdcallcc once zig 0.6.0 is released. See https://github.com/ziglang/zig/pull/3977 |
| 13 | test "zig fmt: convert nakedcc/stdcallcc into callconv(...)" { |
| 14 | try testTransform( |
| 15 | \\nakedcc fn foo1() void {} |
| 16 | \\stdcallcc fn foo2() void {} |
| 17 | , |
| 18 | \\fn foo1() callconv(.Naked) void {} |
| 19 | \\fn foo2() callconv(.Stdcall) void {} |
| 20 | \\ |
| 21 | ); |
| 22 | } |
| 23 | |
| 12 | 24 | test "zig fmt: comptime struct field" { |
| 13 | 25 | try testCanonical( |
| 14 | 26 | \\const Foo = struct { |