1d265bc50c
$ gradlew backend.native:stdlib builds you stdlib.kt.bc now. The test runs are taught to supply -library stdlib.kt.bc to kotlin compiler for proper imports resolution, and then later stdlib.kt.bc is provided to clang for the final link step.
11 lines
176 B
C
11 lines
176 B
C
extern void *resolve_symbol(const char*);
|
|
|
|
int
|
|
run_test() {
|
|
int (*intrinsic)(int) = resolve_symbol("kfun:intrinsic(Int)");
|
|
|
|
if (intrinsic(3) != 4) return 1;
|
|
|
|
return 0;
|
|
}
|