aboutsummaryrefslogtreecommitdiff
path: root/test/parser/invalids.fir
diff options
context:
space:
mode:
authorazidar2016-02-08 14:36:08 -0800
committerazidar2016-02-09 18:57:07 -0800
commit666a193706308a6fbd6c8b4bd06cbc69ae4200a6 (patch)
treebc39995652b4860f4b992570f1004efffd969a0b /test/parser/invalids.fir
parent69597a7d57236bc43c964f7714bfa8ed53bf3bee (diff)
Bug fixes, close to getting correct rocket-firrtl.fir through
Diffstat (limited to 'test/parser/invalids.fir')
-rw-r--r--test/parser/invalids.fir13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/parser/invalids.fir b/test/parser/invalids.fir
new file mode 100644
index 00000000..65051832
--- /dev/null
+++ b/test/parser/invalids.fir
@@ -0,0 +1,13 @@
+; RUN: firrtl -i %s -o %s.out -X firrtl && cat %s.out | FileCheck %s
+; CHECK: Done!
+circuit GCD :
+ module GCD :
+ input x : UInt<128>
+ input p : UInt<1>
+ input q : UInt<1>
+ input clk : Clock
+ wire w : UInt[3]
+ w is invalid
+ w[0] <= UInt(0)
+ w[1] <= UInt(0)
+ w[2] <= UInt(0)