aboutsummaryrefslogtreecommitdiff
path: root/test/errors/high-form/InvalidSubexp.fir
diff options
context:
space:
mode:
authorjackbackrack2015-05-14 13:39:56 -0700
committerjackbackrack2015-05-14 13:39:56 -0700
commit369a6d9ee974f7ca825174e053742e0d4f440575 (patch)
tree1fa3fc4a103505d4b5eac777d320bc825dd90de5 /test/errors/high-form/InvalidSubexp.fir
parent54c33b61ff2c6da7fcd717885316604ecc559c25 (diff)
parent521a4277bfc1d764dc9ee771c604200525e871cb (diff)
merge
Diffstat (limited to 'test/errors/high-form/InvalidSubexp.fir')
-rw-r--r--test/errors/high-form/InvalidSubexp.fir9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/errors/high-form/InvalidSubexp.fir b/test/errors/high-form/InvalidSubexp.fir
new file mode 100644
index 00000000..85fad6fb
--- /dev/null
+++ b/test/errors/high-form/InvalidSubexp.fir
@@ -0,0 +1,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)