summaryrefslogtreecommitdiff
path: root/src/test/scala/chiselTests/RebindingSpec.scala
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/scala/chiselTests/RebindingSpec.scala')
-rw-r--r--src/test/scala/chiselTests/RebindingSpec.scala32
1 files changed, 0 insertions, 32 deletions
diff --git a/src/test/scala/chiselTests/RebindingSpec.scala b/src/test/scala/chiselTests/RebindingSpec.scala
deleted file mode 100644
index 5dc0589e..00000000
--- a/src/test/scala/chiselTests/RebindingSpec.scala
+++ /dev/null
@@ -1,32 +0,0 @@
-// SPDX-License-Identifier: Apache-2.0
-
-package chiselTests
-
-import chisel3._
-import chisel3.stage.ChiselStage
-
-class RebindingSpec extends ChiselFlatSpec with Utils {
- "Rebinding a literal" should "fail" in {
- a[BindingException] should be thrownBy extractCause[BindingException] {
- ChiselStage.elaborate {
- new Module {
- val io = IO(new Bundle {
- val a = 4.U
- })
- }
- }
- }
- }
-
- "Rebinding a hardware type" should "fail" in {
- a[BindingException] should be thrownBy extractCause[BindingException] {
- ChiselStage.elaborate {
- new Module {
- val io = IO(new Bundle {
- val a = Reg(UInt(32.W))
- })
- }
- }
- }
- }
-}