Files
swift-mirror/test/IRGen/objc_shared_imported_decl.sil
T
Jordan Rose 97f1aa7e54 [Mangling] Use "SC" for importer-synthesized conformances
...and "So" for the Swift-side representation of an Objective-C-side
conformance. These manglings are never used in public symbols, but
they're stil good to be consistent about.
2018-01-09 17:55:24 -08:00

19 lines
757 B
Plaintext

// RUN: %target-swift-frontend -primary-file %s -import-objc-header %S/Inputs/usr/include/NSOption.h -emit-ir | %FileCheck %s
// UNSUPPORTED: resilient_stdlib
// REQUIRES: objc_interop
import Swift
sil public @use_witness : $@convention(thin) () -> () {
%0 = witness_method $SomeOptions, #Equatable."=="!1 : <Self where Self : Equatable> (Self.Type) -> (Self, Self) -> Bool : $@convention(witness_method: Equatable) <τ_0_0 where τ_0_0 : Equatable> (@in τ_0_0, @in τ_0_0, @thick τ_0_0.Type) -> Bool
%1 = tuple ()
return %1: $()
}
// We used to emit linkonce_odr llvm linkage for this declaration.
sil_witness_table shared SomeOptions : Equatable module __C_Synthesized
// CHECK: @"$SSo11SomeOptionsVs9EquatableSCWP" = external hidden global