[Native][Tests] Run KlibDumpSignaturesTest without IrInlinerBeforeKlibSerialization
^KT-72441
diff --git a/kotlin-native/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/cgen/InteropIrUtils.kt b/kotlin-native/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/cgen/InteropIrUtils.kt
index 011a49e..512cea5 100644
--- a/kotlin-native/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/cgen/InteropIrUtils.kt
+++ b/kotlin-native/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/cgen/InteropIrUtils.kt
@@ -35,10 +35,21 @@
// Make sure external stubs always get proper annotaions.
@OptIn(ObsoleteDescriptorBasedAPI::class)
-fun IrDeclaration.hasCCallAnnotation(name: String): Boolean =
- this.annotations.hasAnnotation(cCall.child(Name.identifier(name)))
- // LazyIr doesn't pass annotations from descriptor to IrValueParameter.
- || this.descriptor.annotations.hasAnnotation(cCall.child(Name.identifier(name)))
+fun IrDeclaration.hasCCallAnnotation(name: String): Boolean {
+
+ if (this.annotations.hasAnnotation(cCall.child(Name.identifier(name)))) {
+// println("${render()} HAS ANNO $name")
+ return true
+ }
+
+ // LazyIr doesn't pass annotations from descriptor to IrValueParameter.
+ val annotations1 = this.descriptor.annotations
+ if (annotations1.hasAnnotation(cCall.child(Name.identifier(name)))) {
+ error("ALARM!!! ${render()} HAS ANNO $name FOUND ONLY VIA DESCRIPTORS")
+// return true
+ }
+ return false
+}
internal fun IrValueParameter.isWCStringParameter() = hasCCallAnnotation("WCString")