Break out bytecodeText/conditions tests into smaller tests for if/while/do-while.
This commit is contained in:
committed by
max-kammerer
parent
9eb11ff3e9
commit
3585792b3b
+18
@@ -0,0 +1,18 @@
|
||||
fun main(p: String?, p2: String?) {
|
||||
// Generates IFNULL and GOTO
|
||||
while (!(p == null)) {
|
||||
"loop"
|
||||
}
|
||||
|
||||
// Generates IFNULL and GOTO
|
||||
while (p2 != null) {
|
||||
"loop"
|
||||
}
|
||||
}
|
||||
|
||||
//0 ICONST_0
|
||||
//0 ICONST_1
|
||||
//0 ACONST_NULL
|
||||
//2 IFNULL
|
||||
//2 IF
|
||||
//2 GOTO
|
||||
Reference in New Issue
Block a user