Native: add ExperimentalForeignApi opt-in to performance tests
3f3f6eb marks all cinterop-generated declarations with
@ExperimentalForeignApi. As a result, all usages of such declarations
have to opt-in explicitly. This commit adds those opt-ins to all
usages in the performance tests.
^KT-58362
This commit is contained in:
committed by
Space Team
parent
fd564d4af9
commit
bfcb90c716
@@ -22,6 +22,7 @@ fun konanBellardPi() {
|
||||
|
||||
fun clangBellardPi() {
|
||||
for (n in 1 .. 1000 step 9) {
|
||||
@OptIn(kotlinx.cinterop.ExperimentalForeignApi::class)
|
||||
val result = cinterop.pi_nth_digit(n)
|
||||
Blackhole.consume(result)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user