Use IR for override checks. (#3339)

This commit is contained in:
Nikolay Igotti
2019-09-13 14:00:49 +03:00
committed by GitHub
parent 454400a4a2
commit 4f0a3b7a13
4 changed files with 18 additions and 2 deletions
@@ -25,6 +25,7 @@ int main(void) {
T_(kotlin_Unit) nullableUnit = __ createNullableUnit();
T_(kotlin_Int) nullableIntNull = { .pinned = 0 };
T_(kotlin_Unit) nullableUnitNull = { .pinned = 0 };
T_(EnumWithInterface) enum2 = __ kotlin.root.EnumWithInterface.ZERO.get();
const char* string1 = __ kotlin.root.getString();
const char* string2 = __ kotlin.root.Singleton.toString(singleton);
@@ -48,6 +49,7 @@ int main(void) {
printf("RW property is %d\n", __ kotlin.root.Child.get_rwProperty(child));
printf("enum100 = %d\n", __ kotlin.root.Enum.get_code(enum1));
printf("enum42 = %d\n", __ kotlin.root.EnumWithInterface.foo(enum2));
printf("object = %d\n", __ kotlin.root.Codeable.asCode(object1));
@@ -76,6 +78,7 @@ int main(void) {
__ DisposeStablePointer(enum1.pinned);
__ DisposeStablePointer(object1.pinned);
__ DisposeStablePointer(nullableInt.pinned);
__ DisposeStablePointer(enum2.pinned);
__ kotlin.root.setCErrorHandler(&errorHandler);
__ kotlin.root.throwException();