[K/N]: Allow invocation of volatile intrinsics on inline function constant arguments.

Invocation of atomic intrinsics is only allowed on property references that are known at compile time. This commit makes it possible to also invoke intrinsics on a constant property reference getter passed as an argument.
See KT-58359

Co-authored-by: Pavel Kunyavskiy <Pavel.Kunyavskiy@jetbrains.com>

Merge-request: KT-MR-10413
Merged-by: Maria Sokolova <maria.sokolova@jetbrains.com>
This commit is contained in:
Pavel Kunyavskiy
2023-07-24 17:45:16 +00:00
committed by Space Team
parent d77af3c43d
commit 488d24296a
6 changed files with 82 additions and 1 deletions
@@ -40151,6 +40151,12 @@ public class FirNativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTe
runTest("compiler/testData/codegen/box/volatile/crossModuleIntrinsic.kt");
}
@Test
@TestMetadata("intrinsicWithInlineFunction.kt")
public void testIntrinsicWithInlineFunction() throws Exception {
runTest("compiler/testData/codegen/box/volatile/intrinsicWithInlineFunction.kt");
}
@Test
@TestMetadata("intrinsics.kt")
public void testIntrinsics() throws Exception {
@@ -41185,6 +41185,12 @@ public class FirNativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenB
runTest("compiler/testData/codegen/box/volatile/crossModuleIntrinsic.kt");
}
@Test
@TestMetadata("intrinsicWithInlineFunction.kt")
public void testIntrinsicWithInlineFunction() throws Exception {
runTest("compiler/testData/codegen/box/volatile/intrinsicWithInlineFunction.kt");
}
@Test
@TestMetadata("intrinsics.kt")
public void testIntrinsics() throws Exception {
@@ -39635,6 +39635,12 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest
runTest("compiler/testData/codegen/box/volatile/crossModuleIntrinsic.kt");
}
@Test
@TestMetadata("intrinsicWithInlineFunction.kt")
public void testIntrinsicWithInlineFunction() throws Exception {
runTest("compiler/testData/codegen/box/volatile/intrinsicWithInlineFunction.kt");
}
@Test
@TestMetadata("intrinsics.kt")
public void testIntrinsics() throws Exception {
@@ -40152,6 +40152,12 @@ public class NativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenBoxT
runTest("compiler/testData/codegen/box/volatile/crossModuleIntrinsic.kt");
}
@Test
@TestMetadata("intrinsicWithInlineFunction.kt")
public void testIntrinsicWithInlineFunction() throws Exception {
runTest("compiler/testData/codegen/box/volatile/intrinsicWithInlineFunction.kt");
}
@Test
@TestMetadata("intrinsics.kt")
public void testIntrinsics() throws Exception {