Skip to content

Commit

Permalink
Add test for diku-dk#2040.
Browse files Browse the repository at this point in the history
  • Loading branch information
athas authored and CKuke committed Nov 8, 2023
1 parent 69620da commit a3c65aa
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/issue2040.fut
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
def fun [k] (n:i64) (op:[k]f32 -> *[k]f32) (_:[k]f32) =
let process (Q:*[n+1][k]f32) i =
let q = op Q[i]
in Q with [i+1] = q
let Q = replicate (n+1) (replicate k 0)
let Q = process Q 0
in Q

entry test n k = fun n copy (replicate k 0)

0 comments on commit a3c65aa

Please sign in to comment.