aboutsummaryrefslogtreecommitdiff
path: root/test/features/Printf.fir
diff options
context:
space:
mode:
Diffstat (limited to 'test/features/Printf.fir')
-rw-r--r--test/features/Printf.fir17
1 files changed, 9 insertions, 8 deletions
diff --git a/test/features/Printf.fir b/test/features/Printf.fir
index 8449825f..2f8dc985 100644
--- a/test/features/Printf.fir
+++ b/test/features/Printf.fir
@@ -5,15 +5,16 @@ circuit Top :
module Top :
input x : {y : UInt<1>}
input p : UInt<1>
- printf("Hello World!\n")
- printf("Hello World! %x\n", x.y)
+ input clk : Clock
+ printf(clk,"Hello World!\n")
+ printf(clk,"Hello World! %x\n", x.y)
when p :
- printf("In consequence\n")
+ printf(clk,"In consequence\n")
else :
- printf("In alternate\n")
+ printf(clk,"In alternate\n")
-;CHECK: printf("Hello World!\n")
-;CHECK: printf("Hello World! %x\n", x$y)
-;CHECK: when p : printf("In consequence\n")
-;CHECK: when not(p) : printf("In alternate\n")
+;CHECK: printf(clk, "Hello World!\n")
+;CHECK: printf(clk, "Hello World! %x\n", x$y)
+;CHECK: when p : printf(clk, "In consequence\n")
+;CHECK: when not(p) : printf(clk, "In alternate\n")
;CHECK: Done!