Skip to content

Commit 116b9da

Browse files
committed
one more jmpif test
1 parent a1798ce commit 116b9da

File tree

1 file changed

+17
-0
lines changed
  • compiler/noirc_evaluator/src/ssa/parser

1 file changed

+17
-0
lines changed

compiler/noirc_evaluator/src/ssa/parser/tests.rs

+17
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,23 @@ fn test_jmpif() {
164164
assert_ssa_roundtrip(src);
165165
}
166166

167+
#[test]
168+
fn test_multiple_jmpif() {
169+
let src = "
170+
acir(inline) fn main f0 {
171+
b0(v0: Field, v1: Field):
172+
jmpif v0 then: b1, else: b2
173+
b1():
174+
return
175+
b2():
176+
jmpif v1 then: b3, else: b1
177+
b3():
178+
return
179+
}
180+
";
181+
assert_ssa_roundtrip(src);
182+
}
183+
167184
#[test]
168185
fn test_call() {
169186
let src = "

0 commit comments

Comments
 (0)