aboutsummaryrefslogtreecommitdiff
path: root/test/errors/high-form/InvalidSubexp.fir
blob: 8116cc2f55a3a5a3f34ad0cf646ac4e4912a910c (plain)
1
2
3
4
5
6
7
8
9
; RUN: firrtl -i %s -o %s.flo -X flo -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)