diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/test/scala/chiselTests/BundleSpec.scala | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/test/scala/chiselTests/BundleSpec.scala b/src/test/scala/chiselTests/BundleSpec.scala index 625c0b5b..df02aa20 100644 --- a/src/test/scala/chiselTests/BundleSpec.scala +++ b/src/test/scala/chiselTests/BundleSpec.scala @@ -128,4 +128,17 @@ class BundleSpec extends ChiselFlatSpec with BundleSpecUtils with Utils { } } }).getMessage should include("aliased fields") } + + "Unbound bundles sharing a field" should "not error" in { + ChiselStage.elaborate { + new RawModule { + val foo = new Bundle { + val x = UInt(8.W) + } + val bar = new Bundle { + val y = foo.x + } + } + } + } } |
