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