master
1const std = @import("std");
2
3pub fn panic(message: []const u8, stack_trace: ?*std.builtin.StackTrace, _: ?usize) noreturn {
4 _ = stack_trace;
5 if (std.mem.eql(u8, message, "shift amount is greater than the type size")) {
6 std.process.exit(0);
7 }
8 std.process.exit(1);
9}
10
11pub fn main() !void {
12 var x: u24 = 42;
13 var y: u5 = 24;
14 _ = .{ &x, &y };
15 const z = x << y;
16 _ = z;
17 return error.TestFailed;
18}
19
20// run
21// backend=selfhosted,llvm
22// target=x86_64-linux,aarch64-linux