summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/test/scala/chiselTests/CompatibilitySpec.scala13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/test/scala/chiselTests/CompatibilitySpec.scala b/src/test/scala/chiselTests/CompatibilitySpec.scala
index 88228475..97eb58d0 100644
--- a/src/test/scala/chiselTests/CompatibilitySpec.scala
+++ b/src/test/scala/chiselTests/CompatibilitySpec.scala
@@ -554,4 +554,17 @@ class CompatibiltySpec extends ChiselFlatSpec with GeneratorDrivenPropertyChecks
elaborate(new Foo)
}
+ behavior of "UInt"
+
+ it should "support legacy methods" in {
+ class Foo extends Module {
+ val io = new Bundle{}
+
+ info("!= works")
+ (UInt(1) != UInt(1)) shouldBe a [Bool]
+ }
+
+ elaborate(new Foo)
+ }
+
}