[K/N] Test for KT-50970
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
/*
|
||||
* Copyright 2010-2022 JetBrains s.r.o. and Kotlin Programming Language contributors.
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
|
||||
*/
|
||||
|
||||
// NB: This is not a good test.
|
||||
// What we actually want to check is that Kotlin/Native compiler is able to produce "big"
|
||||
// binaries for 32-bit Apple Watch target. The problem is that such test is very-very-very
|
||||
// slow to compile (~20 min on a local machine) which is not acceptable for CI.
|
||||
//
|
||||
// Instead, here we check that none of the module's functions are compiled in the Thumb mode.
|
||||
// BL instructions in thumb mode have smaller ranges which causes "relocation out of range" failure.
|
||||
|
||||
// CHECK: target triple = "armv7k-apple-watchos{{.+}}"
|
||||
|
||||
fun main() {
|
||||
println("hello")
|
||||
}
|
||||
|
||||
// CHECK-NOT: attributes #{{[0-9]+}} = { {{.+}}+thumb-mode{{.+}} }
|
||||
Reference in New Issue
Block a user