diff options
| author | Veikka Tuominen <git@vexu.eu> | 2022-11-30 15:22:34 +0200 |
|---|---|---|
| committer | Veikka Tuominen <git@vexu.eu> | 2022-11-30 17:11:06 +0200 |
| commit | f4afeb3ffd7f968d2c93839dc5a1f2a744e114ff (patch) | |
| tree | 58dcabde31f00c80a5d81d879cab92e5f1c8ab12 /test/behavior | |
| parent | 7be6f352e395b1fdc5cc7c3c91067cf4e473d753 (diff) | |
| download | zig-f4afeb3ffd7f968d2c93839dc5a1f2a744e114ff.tar.gz zig-f4afeb3ffd7f968d2c93839dc5a1f2a744e114ff.zip | |
AstGen: fix incorrect handling of source cursor with shift builtins
Closes #13714
Diffstat (limited to 'test/behavior')
| -rw-r--r-- | test/behavior/bugs/13714.zig | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/behavior/bugs/13714.zig b/test/behavior/bugs/13714.zig new file mode 100644 index 0000000000..f11dac3676 --- /dev/null +++ b/test/behavior/bugs/13714.zig @@ -0,0 +1,4 @@ +comptime { + var image: [1]u8 = undefined; + _ = @shlExact(@as(u16, image[0]), 8); +} |
