diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2023-07-03 15:59:54 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-07-03 15:59:54 -0700 |
| commit | 17890f6b8a9a91c780377ac6cdcb22fc4180e929 (patch) | |
| tree | 330dae6f9a9c23e052e270c8cf333c5f80beded6 /test/cases/compile_errors/@intCast_on_vec.zig | |
| parent | 0dffab7356685c7643aa6e3cbe0ad1a18bc0dd55 (diff) | |
| parent | adf07183165eb910be6f8b13ae0192dab6ed59e7 (diff) | |
| download | zig-17890f6b8a9a91c780377ac6cdcb22fc4180e929.tar.gz zig-17890f6b8a9a91c780377ac6cdcb22fc4180e929.zip | |
Merge pull request #15879 from r00ster91/more_stage1_test_coverage
More stage1 test coverage
Diffstat (limited to 'test/cases/compile_errors/@intCast_on_vec.zig')
| -rw-r--r-- | test/cases/compile_errors/@intCast_on_vec.zig | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/cases/compile_errors/@intCast_on_vec.zig b/test/cases/compile_errors/@intCast_on_vec.zig new file mode 100644 index 0000000000..0bc18afb9f --- /dev/null +++ b/test/cases/compile_errors/@intCast_on_vec.zig @@ -0,0 +1,13 @@ +export fn entry() void { + const a = @Vector(4, u32){ 1, 1, 1, 1 }; + _ = @as(u32, @intCast(a)); +} + +// TODO: change target in the manifest to "native" probably after this is fixed: +// https://github.com/ziglang/zig/issues/13782 + +// error +// backend=stage2 +// target=x86_64-linux +// +// :3:27: error: expected type 'u32', found '@Vector(4, u32)' |
