[JS IR] Make tests that use directives pass with IR BE
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
// EXPECTED_REACHABLE_NODES: 1292
|
||||
// CHECK_LABELS_COUNT: function=test0 count=0
|
||||
// CHECK_LABELS_COUNT: function=test1 count=0
|
||||
// CHECK_LABELS_COUNT: function=test1 count=0 TARGET_BACKENDS=JS
|
||||
// CHECK_LABELS_COUNT: function=test2 count=0
|
||||
// CHECK_LABELS_COUNT: function=test3 count=0
|
||||
// CHECK_LABELS_COUNT: function=test3 count=0 TARGET_BACKENDS=JS
|
||||
|
||||
package foo
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// EXPECTED_REACHABLE_NODES: 1285
|
||||
package foo
|
||||
|
||||
// CHECK_CONTAINS_NO_CALLS: test
|
||||
// CHECK_CONTAINS_NO_CALLS: test except=Unit_getInstance
|
||||
// CHECK_LABELS_COUNT: function=test name=loop count=1
|
||||
// CHECK_LABELS_COUNT: function=test name=loop_0 count=1
|
||||
// CHECK_LABELS_COUNT: function=test name=loop_1 count=1
|
||||
|
||||
+3
-1
@@ -1,7 +1,9 @@
|
||||
// EXPECTED_REACHABLE_NODES: 1283
|
||||
package foo
|
||||
|
||||
// CHECK_LABELS_COUNT: function=test name=loop count=2
|
||||
// CHECK_LABELS_COUNT: function=test name=loop count=2 TARGET_BACKENDS=JS
|
||||
// CHECK_LABELS_COUNT: function=test name=loop count=1 IGNORED_BACKENDS=JS
|
||||
// CHECK_LABELS_COUNT: function=test name=loop_0 count=1 IGNORED_BACKENDS=JS
|
||||
|
||||
fun test() {
|
||||
var i = 0
|
||||
|
||||
@@ -2,7 +2,9 @@
|
||||
package foo
|
||||
|
||||
// CHECK_NOT_CALLED: testInline
|
||||
// CHECK_LABELS_COUNT: function=testNoinline name=loop count=2
|
||||
// CHECK_LABELS_COUNT: function=testNoinline name=loop count=2 TARGET_BACKENDS=JS
|
||||
// CHECK_LABELS_COUNT: function=testNoinline name=loop count=1 IGNORED_BACKENDS=JS
|
||||
// CHECK_LABELS_COUNT: function=testNoinline name=loop_0 count=1 IGNORED_BACKENDS=JS
|
||||
|
||||
inline fun testInline(): Int {
|
||||
var c = 0
|
||||
|
||||
@@ -3,7 +3,9 @@ package foo
|
||||
|
||||
// CHECK_NOT_CALLED: testLabelInline
|
||||
// CHECK_LABELS_COUNT: function=testLabel name=loop count=1
|
||||
// CHECK_LABELS_COUNT: function=testLabel name=loop_0 count=2
|
||||
// CHECK_LABELS_COUNT: function=testLabel name=loop_0 count=2 TARGET_BACKENDS=JS
|
||||
// CHECK_LABELS_COUNT: function=testLabel name=loop_0 count=1 IGNORED_BACKENDS=JS
|
||||
// CHECK_LABELS_COUNT: function=testLabel name=loop_1 count=1 IGNORED_BACKENDS=JS
|
||||
|
||||
inline fun testLabelInline(): Int {
|
||||
var a = 0
|
||||
|
||||
Reference in New Issue
Block a user