authorgravatar for thatlemon@gmail.comLemonBoy <thatlemon@gmail.com> 2019-12-31 13:16:49+01:00
committergravatar for thatlemon@gmail.comLemonBoy <thatlemon@gmail.com> 2020-01-02 18:57:08+01:00
loge99209baf04f97dfdb9df92752224b49fc275d67
tree926ab962445f3c7b7caab22ca48b92c0c1af41d5
parent0ccac79c8ebc1ed56dbdab068076a86924a015bc

Add transform test


1 files changed, 12 insertions(+), 0 deletions(-)

lib/std/zig/parser_test.zig+12
......@@ -9,6 +9,18 @@ test "zig fmt: change @typeOf to @TypeOf" {
99 );
1010}
1111
12// TODO: Remove nakedcc/stdcallcc once zig 0.6.0 is released. See https://github.com/ziglang/zig/pull/3977
13test "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
1224test "zig fmt: comptime struct field" {
1325 try testCanonical(
1426 \\const Foo = struct {