mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
This prevents the linker from trying to emit relative relocations to locally-defined public symbols into dynamic libraries, which gives ld.so heartache.
13 lines
463 B
Plaintext
13 lines
463 B
Plaintext
// RUN: %target-swift-frontend -emit-ir %s | FileCheck %s
|
|
// REQUIRES: objc_interop
|
|
|
|
// CHECK-LABEL: @_TMmC30swift_native_objc_runtime_base1C = {{(protected )?}}global %objc_class {
|
|
// -- metaclass "isa" is root metaclass
|
|
// CHECK: %objc_class* @"OBJC_METACLASS_$_NSObject",
|
|
// -- metaclass "super" is super metaclass
|
|
// CHECK: %objc_class* @"OBJC_METACLASS_$_NSMagicBase"
|
|
@_swift_native_objc_runtime_base(NSMagicBase)
|
|
class C {}
|
|
|
|
sil_vtable C {}
|