aboutsummaryrefslogtreecommitdiff
path: root/test/errors
diff options
context:
space:
mode:
authorazidar2015-10-07 14:48:04 -0700
committerazidar2015-10-07 14:49:54 -0700
commit4183c648b719eac9da26e2d9d34fa852ebdbfd20 (patch)
tree87d216e61563d0498c29953b824848ab92a7ade9 /test/errors
parent9f2e1fd28f8526f7b68dc4b0ea030ceded720697 (diff)
Added Printf and Stop to firrtl. #23 #24.
Diffstat (limited to 'test/errors')
-rw-r--r--test/errors/high-form/Printf.fir15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/errors/high-form/Printf.fir b/test/errors/high-form/Printf.fir
new file mode 100644
index 00000000..7f285d3e
--- /dev/null
+++ b/test/errors/high-form/Printf.fir
@@ -0,0 +1,15 @@
+; RUN: firrtl -i %s -o %s.v -X verilog -p c 2>&1 | tee %s.out | FileCheck %s
+
+circuit Top :
+ module Top :
+ input x : {y : UInt<1>}
+ input p : UInt<1>
+ printf("Hello World%!\n",x)
+ printf("Hello World%")
+ printf("Hello World%d %s %h %x",x,x,x)
+
+;CHECK: Bad printf format: "%!"
+;CHECK: Bad printf format: trailing "%"
+;CHECK: Bad printf format: incorrect number of arguments
+;CHECK: Bad printf format: "%h"
+;CHECK: Bad printf format: incorrect number of arguments