Last active
May 17, 2021 20:19
-
-
Save dmgk/ae3e900f0aaf86900d538a707f992841 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const std = @import("std"); | |
fn func(args: [][*:0]const u8) void {} | |
pub fn main() void { | |
var args = [_][*:0]const u8{ "one", "two" }; | |
// OK | |
func(&args); | |
// ICE | |
{ | |
// broken LLVM module found: Call parameter type does not match function signature! | |
// %"[][*:0]u8"* @argv | |
// %"[][*:0]const u8"* call fastcc void @func(%"[][*:0]u8"* @argv), !dbg !16063 | |
// This is a bug in the Zig compiler.thread 69656 panic: | |
// Unable to dump stack trace: debug info stripped | |
func(std.os.argv); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment