Skip to content

Conversation

@bbugdigger
Copy link

YouTrack link: https://youtrack.jetbrains.com/issue/KT-69481/Native-add-tests-for-distinguishing-reference-and-pointers-in-RTTGenerator.mapRuntimeType

Add codegen test verifying that mapRuntimeType correctly distinguishes Kotlin object references (RT_OBJECT) from raw C pointers (RT_NATIVE_PTR) when both are represented as ptr in LLVM with opaque pointers.

The test creates classes with mixed CPointer and Kotlin object fields, then verifies GC correctly traces object references without crashing on raw pointers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant