Skip to content

Commit

Permalink
Add test for #1240
Browse files Browse the repository at this point in the history
PR #1354 fixes #1240
  • Loading branch information
martijnbastiaan committed Jun 2, 2020
1 parent fb0fffd commit 98d1e64
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions changelog/2020-05-28T16_39_31+02_00_fix1240
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
FIXES: Added blackbox implementation for 'Clash.Sized.Vector.iterateI', hence making it usable as a register reset value [#1240](https://github.com/clash-lang/clash-compiler/issues/1240)
5 changes: 5 additions & 0 deletions tests/shouldwork/Basic/T1240.hs
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module T1240 where

import Clash.Prelude

topEntity = register @System $(lift (iterate d1 not True))
1 change: 1 addition & 0 deletions testsuite/Main.hs
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,7 @@ runClashTest = defaultMain $ clashTestRoot
, topEntities=TopEntities ["top1"]
}
, runTest "T1012" def{hdlSim=False}
, runTest "T1240" def{hdlSim=False}
, runTest "T1242" def{hdlSim=False}
, runTest "T1254" def{hdlTargets=[VHDL,SystemVerilog],hdlSim=False}
, runTest "T1292" def{hdlTargets=[VHDL]}
Expand Down

0 comments on commit 98d1e64

Please sign in to comment.