[FIR] Add a test to make sure that arrayOf function is always presented

Because it's located in builtins but not in stdlib.

It should work even if no runtime is specified.

^KTIJ-26465
This commit is contained in:
Ivan Kochurkin
2023-08-01 17:47:10 +02:00
committed by Space Team
parent 8a482c50c2
commit 4d7e54b2bb
3 changed files with 16 additions and 0 deletions
@@ -0,0 +1,4 @@
// IGNORE_FIR
// ISSUE: KTIJ-26465 (Unignore the test after the issue fixed)
<caret>annotation class Ann(vararg val a: String = ["/"])
@@ -723,6 +723,12 @@ public class FirOutOfContentRootLazyDeclarationResolveTestGenerated extends Abst
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("analysis/low-level-api-fir/testdata/lazyResolve/noRuntime"), Pattern.compile("^(.+)\\.(kt)$"), null, true);
}
@Test
@TestMetadata("arrayOfCall.kt")
public void testArrayOfCall() throws Exception {
runTest("analysis/low-level-api-fir/testdata/lazyResolve/noRuntime/arrayOfCall.kt");
}
@Test
@TestMetadata("integerLiteralCall.kt")
public void testIntegerLiteralCall() throws Exception {
@@ -723,6 +723,12 @@ public class FirSourceLazyDeclarationResolveTestGenerated extends AbstractFirSou
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("analysis/low-level-api-fir/testdata/lazyResolve/noRuntime"), Pattern.compile("^(.+)\\.(kt)$"), null, true);
}
@Test
@TestMetadata("arrayOfCall.kt")
public void testArrayOfCall() throws Exception {
runTest("analysis/low-level-api-fir/testdata/lazyResolve/noRuntime/arrayOfCall.kt");
}
@Test
@TestMetadata("integerLiteralCall.kt")
public void testIntegerLiteralCall() throws Exception {