Files
swift-mirror/test/IRGen/swift_native_objc_runtime_base.sil
Joe Groff 8cb1175e49 IRGen: Emit public definitions with protected visibility on ELF.
This prevents the linker from trying to emit relative relocations to locally-defined public symbols into dynamic libraries, which gives ld.so heartache.
2016-02-08 13:09:27 -08:00

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 {}