aboutsummaryrefslogtreecommitdiff
path: root/test/errors/high-form/InvalidSubexp.fir
blob: 85fad6fb64d7cb1698227f21cd941c9a1a16eb92 (plain)
1
2
3
4
5
6
7
8
9
; RUN: firrtl -i %s -o %s.flo -x X -p c | tee %s.out | FileCheck %s
; CHECK: Invalid index access to non-reference.
; CHECK: Invalid subfield access to non-reference.

circuit Top :
  module Top :
    wire x : UInt<4>
    add(x,x)[10] := UInt(1)
    add(x,x).x := UInt(1)