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 4, 2020
1 parent a30be39 commit e8eb313
Show file tree
Hide file tree
Showing 3 changed files with 11 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)
9 changes: 9 additions & 0 deletions tests/shouldwork/Basic/T1240.hs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
module T1240 where

import Clash.Prelude

topEntity
:: SystemClockResetEnable
=> Signal System (Vec 1 Bool)
-> Signal System (Vec 1 Bool)
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 @@ -273,6 +273,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 e8eb313

Please sign in to comment.