summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/test/scala/chiselTests/InvalidateAPISpec.scala8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/test/scala/chiselTests/InvalidateAPISpec.scala b/src/test/scala/chiselTests/InvalidateAPISpec.scala
index 2c51e5d2..dbd353a0 100644
--- a/src/test/scala/chiselTests/InvalidateAPISpec.scala
+++ b/src/test/scala/chiselTests/InvalidateAPISpec.scala
@@ -228,4 +228,12 @@ class InvalidateAPISpec extends ChiselPropSpec with Matchers with BackendCompila
val firrtlOutput = myGenerateFirrtl(new ModuleWithoutDontCare)
firrtlOutput should include("is invalid")
}
+
+ property("a clock should be able to be connected to a DontCare") {
+ class ClockConnectedToDontCare extends Module {
+ val foo = IO(Output(Clock()))
+ foo := DontCare
+ }
+ myGenerateFirrtl(new ClockConnectedToDontCare) should include("foo is invalid")
+ }
}