// expected: undefined: Undefined // // A variadic parameter whose element type cannot be resolved is an error, never // a `void` parameter. Every DotsType case used to resolve its element and fall // through to nil, while the `variadic` flag is read from the AST shape // independently - so the parameter became `void` and callers still built a slice // for it: // // %t4 = getelementptr inbounds i8, ptr %t3, i32 0 ; GEP of the slice VALUE // call void @main.f(void %t3, ptr null) // // clang rejects that, and when a scope happened to carry the binding the slice // construction computed a garbage element size instead and the compiler panicked // with "alloc: implausible size". // // The BARE name is deliberate. The same fixture with a QUALIFIED unresolved name // (`...fmt.Stringer` in a file that does not import fmt) makes the compiler // segfault in runtime.memcpy on roughly 2-7% of runs - see the work log, // round 81 - so this pins the rule without carrying that flake in the suite. package main func f(args ...Undefined) {} func main() { f() }