Fix #3952
This commit is contained in:
committed by
GitHub
parent
dd161d614a
commit
1745a95f57
@@ -14,6 +14,16 @@ void testVector128() {
|
||||
printf("getVector128 = (%d, %d, %d, %d)\n", v4f[0], v4f[1], v4f[2], v4f[3]);
|
||||
}
|
||||
|
||||
// See https://github.com/JetBrains/kotlin-native/issues/3952
|
||||
void testGH3952() {
|
||||
T_(gh3952_nested_sync_NestedSync) good = __ kotlin.root.gh3952.nested.sync.NestedSync.NestedSync();
|
||||
|
||||
T_(gh3952_sync_PlainSync) alsoGood = __ kotlin.root.gh3952.sync.PlainSync.PlainSync();
|
||||
|
||||
__ DisposeStablePointer(good.pinned);
|
||||
__ DisposeStablePointer(alsoGood.pinned);
|
||||
}
|
||||
|
||||
int main(void) {
|
||||
T_(Singleton) singleton = __ kotlin.root.Singleton._instance();
|
||||
T_(Base) base = __ kotlin.root.Base.Base();
|
||||
@@ -74,6 +84,7 @@ int main(void) {
|
||||
printf("IsInstance2 = %s\n", !(__ IsInstance(singleton.pinned, __ kotlin.root.Codeable._type())) ? "PASS" : "FAIL");
|
||||
|
||||
testVector128();
|
||||
testGH3952();
|
||||
|
||||
__ DisposeStablePointer(singleton.pinned);
|
||||
__ DisposeString(string1);
|
||||
|
||||
Reference in New Issue
Block a user