feat: specialize constant-input type-producing procedures
This commit is contained in:
@@ -80,13 +80,13 @@ recompiles_specialized_calls_without_borrowing_previous_ir test {
|
||||
`identity proc($T type, value T) T {
|
||||
` if (T == i16) return value else return value.missing
|
||||
`}
|
||||
`Box proc($T type) type { return struct { value T } }
|
||||
`Box proc(T type) type { return struct { value T } }
|
||||
`count proc() usize {
|
||||
` result := 0
|
||||
` while (result < 2) result = result + 1
|
||||
` return result
|
||||
`}
|
||||
`Fixed proc($N usize) type { return struct { values [N]i16 } }
|
||||
`Fixed proc(N usize) type { return struct { values [N]i16 } }
|
||||
`data proc() [2]i16 { return [40, 2] }
|
||||
`main proc() i16 {
|
||||
` if $(i16 != i16) { return $(i8(128)) }
|
||||
|
||||
Reference in New Issue
Block a user