Commit 1a08c0d40b

Andrew Kelley <andrew@ziglang.org>
2020-01-23 06:46:44
new test case
1 parent 396d57c
Changed files (1)
test
stage1
behavior
test/stage1/behavior/bitcast.zig
@@ -167,3 +167,12 @@ test "nested bitcast" {
     S.foo(42);
     comptime S.foo(42);
 }
+
+test "bitcast passed as tuple element" {
+    const S = struct {
+        fn foo(args: var) void {
+            expect(args[0] == 1.00000e-09);
+        }
+    };
+    S.foo(.{@bitCast(f32, @as(u32, 814313563))});
+}