diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/test/scala/chiselTests/CompatibilitySpec.scala | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/test/scala/chiselTests/CompatibilitySpec.scala b/src/test/scala/chiselTests/CompatibilitySpec.scala index 97eb58d0..c602efa3 100644 --- a/src/test/scala/chiselTests/CompatibilitySpec.scala +++ b/src/test/scala/chiselTests/CompatibilitySpec.scala @@ -567,4 +567,17 @@ class CompatibiltySpec extends ChiselFlatSpec with GeneratorDrivenPropertyChecks elaborate(new Foo) } + behavior of "SInt" + + it should "support legacy methods" in { + class Foo extends Module { + val io = new Bundle{} + + info("!= works") + (SInt(-1) != SInt(-1)) shouldBe a [Bool] + } + + elaborate(new Foo) + } + } |
