[JS IC TEST] Add test case for moving inline functions between modules
This commit is contained in:
+5
@@ -40,6 +40,11 @@ public class InvalidationTestGenerated extends AbstractInvalidationTest {
|
|||||||
runTest("js/js.translator/testData/incremental/invalidation/fastPath2/");
|
runTest("js/js.translator/testData/incremental/invalidation/fastPath2/");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@TestMetadata("moveInlineFunctionBetweenModules")
|
||||||
|
public void testMoveInlineFunctionBetweenModules() throws Exception {
|
||||||
|
runTest("js/js.translator/testData/incremental/invalidation/moveInlineFunctionBetweenModules/");
|
||||||
|
}
|
||||||
|
|
||||||
@TestMetadata("privateInlineFunction1")
|
@TestMetadata("privateInlineFunction1")
|
||||||
public void testPrivateInlineFunction1() throws Exception {
|
public void testPrivateInlineFunction1() throws Exception {
|
||||||
runTest("js/js.translator/testData/incremental/invalidation/privateInlineFunction1/");
|
runTest("js/js.translator/testData/incremental/invalidation/privateInlineFunction1/");
|
||||||
|
|||||||
Vendored
+4
@@ -0,0 +1,4 @@
|
|||||||
|
|
||||||
|
inline fun foo(a: Int) = a * 2
|
||||||
|
|
||||||
|
inline fun bar(b: Int) = b - 3
|
||||||
Vendored
+2
@@ -0,0 +1,2 @@
|
|||||||
|
|
||||||
|
inline fun foo(a: Int) = a * 3
|
||||||
js/js.translator/testData/incremental/invalidation/moveInlineFunctionBetweenModules/lib1/module.info
Vendored
+8
@@ -0,0 +1,8 @@
|
|||||||
|
STEP 0:
|
||||||
|
dependencies: stdlib
|
||||||
|
dirty: l1.kt
|
||||||
|
STEP 1:
|
||||||
|
dependencies: stdlib
|
||||||
|
modifications:
|
||||||
|
U : l1.kt.1 -> l1.kt
|
||||||
|
dirty: l1.kt
|
||||||
Vendored
+2
@@ -0,0 +1,2 @@
|
|||||||
|
|
||||||
|
inline fun qux(x: Int, y: Int) = foo(x) + bar(y)
|
||||||
Vendored
+2
@@ -0,0 +1,2 @@
|
|||||||
|
|
||||||
|
inline fun bar(b: Int) = b - 4
|
||||||
js/js.translator/testData/incremental/invalidation/moveInlineFunctionBetweenModules/lib2/module.info
Vendored
+9
@@ -0,0 +1,9 @@
|
|||||||
|
STEP 0:
|
||||||
|
dependencies: stdlib, lib1
|
||||||
|
dirty: l2.kt
|
||||||
|
|
||||||
|
STEP 1:
|
||||||
|
dependencies: stdlib, lib1
|
||||||
|
modifications:
|
||||||
|
U : l22.kt.1 -> l22.kt
|
||||||
|
dirty: l2.kt, l22.kt
|
||||||
Vendored
+2
@@ -0,0 +1,2 @@
|
|||||||
|
|
||||||
|
inline fun dex(x: Int, y: Int) = qux(x * y, y - x)
|
||||||
js/js.translator/testData/incremental/invalidation/moveInlineFunctionBetweenModules/lib3/module.info
Vendored
+7
@@ -0,0 +1,7 @@
|
|||||||
|
STEP 0:
|
||||||
|
dependencies: stdlib, lib1, lib2
|
||||||
|
dirty: l3.kt
|
||||||
|
|
||||||
|
STEP 1:
|
||||||
|
dependencies: stdlib, lib1, lib2
|
||||||
|
dirty: l3.kt
|
||||||
Vendored
+2
@@ -0,0 +1,2 @@
|
|||||||
|
|
||||||
|
fun box() = dex(4, 2)
|
||||||
js/js.translator/testData/incremental/invalidation/moveInlineFunctionBetweenModules/main/module.info
Vendored
+7
@@ -0,0 +1,7 @@
|
|||||||
|
STEP 0:
|
||||||
|
dependencies: stdlib, lib1, lib2, lib3
|
||||||
|
dirty: m.kt
|
||||||
|
|
||||||
|
STEP 1:
|
||||||
|
dependencies: stdlib, lib1, lib2, lib3
|
||||||
|
dirty: m.kt
|
||||||
Vendored
+7
@@ -0,0 +1,7 @@
|
|||||||
|
MODULES: lib1, lib2, lib3, main
|
||||||
|
|
||||||
|
STEP 0:
|
||||||
|
libs: lib1, lib2, lib3, main
|
||||||
|
|
||||||
|
STEP 1:
|
||||||
|
libs: lib1, lib2, lib3, main
|
||||||
Reference in New Issue
Block a user