aboutsummaryrefslogtreecommitdiff
path: root/test/behavior/floatop.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2023-06-19 22:36:24 -0700
committerGitHub <noreply@github.com>2023-06-19 22:36:24 -0700
commita72d634b731952ee227d026c27e83c5702dcea4a (patch)
tree8bfc4c9afa75a27ebb1108924589a8e7d5cc89ed /test/behavior/floatop.zig
parentc6e2e1ae4b85fc36acc89c9a5e2673834146d628 (diff)
parenta4d1edac8d65e1aa4b565f6fb11ab78541d97efa (diff)
downloadzig-a72d634b731952ee227d026c27e83c5702dcea4a.tar.gz
zig-a72d634b731952ee227d026c27e83c5702dcea4a.zip
Merge pull request #16046 from BratishkaErik/issue-6128
Renaming `@xtoy` to `@YfromX`
Diffstat (limited to 'test/behavior/floatop.zig')
-rw-r--r--test/behavior/floatop.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/behavior/floatop.zig b/test/behavior/floatop.zig
index 15033d5515..56f3885a4a 100644
--- a/test/behavior/floatop.zig
+++ b/test/behavior/floatop.zig
@@ -89,12 +89,12 @@ fn testDifferentSizedFloatComparisons() !void {
// }
//}
-test "negative f128 floatToInt at compile-time" {
+test "negative f128 intFromFloat at compile-time" {
if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; // TODO
if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO
const a: f128 = -2;
- var b = @floatToInt(i64, a);
+ var b = @intFromFloat(i64, a);
try expect(@as(i64, -2) == b);
}