blob: 7f285d3ea078091b58ae91d97d6de314d79355a6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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
|