aboutsummaryrefslogtreecommitdiff
path: root/test/behavior/tuple.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2022-05-26 19:38:28 -0700
committerAndrew Kelley <andrew@ziglang.org>2022-05-26 21:58:19 -0700
commit4751356d7f1da157665d37e29216628e61ddf079 (patch)
tree4d703caff2eec93161d5f37737b24fa87073053b /test/behavior/tuple.zig
parentf2e8c79763723e394f57af84af977d91652568b5 (diff)
downloadzig-4751356d7f1da157665d37e29216628e61ddf079.tar.gz
zig-4751356d7f1da157665d37e29216628e61ddf079.zip
clean up some behavior tests
* improve names * properly categorize a couple of bug cases * mark one as already passing
Diffstat (limited to 'test/behavior/tuple.zig')
-rw-r--r--test/behavior/tuple.zig8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/behavior/tuple.zig b/test/behavior/tuple.zig
index 80eaea5072..5e044abf4f 100644
--- a/test/behavior/tuple.zig
+++ b/test/behavior/tuple.zig
@@ -192,3 +192,11 @@ test "tuple as the result from a labeled block" {
try S.doTheTest();
comptime try S.doTheTest();
}
+
+test "initializing tuple with explicit type" {
+ if (builtin.zig_backend != .stage1) return error.SkipZigTest; // TODO
+
+ const T = @TypeOf(.{ @as(i32, 0), @as(u32, 0) });
+ var a = T{ 0, 0 };
+ _ = a;
+}