aboutsummaryrefslogtreecommitdiff
path: root/test/behavior
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2021-06-10 20:13:43 -0700
committerAndrew Kelley <andrew@ziglang.org>2021-06-10 20:13:43 -0700
commit138afd5cbfbe17829082efa3084f63de88aa1c90 (patch)
tree9fa22ed8b26d212f181f31ccd798a8944b17e258 /test/behavior
parenta3f7a48d9c9916a36a0b246eefbf5516e9400b95 (diff)
downloadzig-138afd5cbfbe17829082efa3084f63de88aa1c90.tar.gz
zig-138afd5cbfbe17829082efa3084f63de88aa1c90.zip
zig fmt
Diffstat (limited to 'test/behavior')
-rw-r--r--test/behavior/bugs/4769_c.zig1
-rw-r--r--test/behavior/fn.zig2
-rw-r--r--test/behavior/type.zig2
3 files changed, 2 insertions, 3 deletions
diff --git a/test/behavior/bugs/4769_c.zig b/test/behavior/bugs/4769_c.zig
deleted file mode 100644
index 4894ddf7e8..0000000000
--- a/test/behavior/bugs/4769_c.zig
+++ /dev/null
@@ -1 +0,0 @@
-/// \ No newline at end of file
diff --git a/test/behavior/fn.zig b/test/behavior/fn.zig
index afd590b1da..75a1131072 100644
--- a/test/behavior/fn.zig
+++ b/test/behavior/fn.zig
@@ -114,7 +114,7 @@ test "assign inline fn to const variable" {
a();
}
-fn inlineFn() callconv(.Inline) void {}
+inline fn inlineFn() void {}
test "pass by non-copying value" {
try expect(addPointCoords(Point{ .x = 1, .y = 2 }) == 3);
diff --git a/test/behavior/type.zig b/test/behavior/type.zig
index 92756b9e66..5fd89ab43c 100644
--- a/test/behavior/type.zig
+++ b/test/behavior/type.zig
@@ -182,7 +182,7 @@ test "Type.Optional" {
}
test "Type.ErrorUnion" {
- try testTypes(&[_]type{
+ try testTypes(&[_]type{
error{}!void,
error{Error}!void,
});