Files
swift-mirror/test/TBD/Inputs/api_grab_bag.swift
Harlan Haskins c94b952a54 [TBDGen] Mangle symbols before putting them in the TBD
The linker expects to see mangled symbols in the TBD, otherwise it won't
be able to link anything. Use LLVM's mangler to mangle them.

Fixes rdar://54055049
2019-10-16 18:50:54 -07:00

32 lines
534 B
Swift

public class PublicClass {
public func method() {
}
public init() {
}
}
public class PublicSubclass: PublicClass {
public override func method() {
}
}
public protocol PublicProtocol {
var publicStruct: PublicStruct { get }
}
public struct PublicStruct {
public init() {}
}
extension PublicStruct: PublicProtocol {
public var publicStruct: PublicStruct { return self }
}
public enum PublicEnum: PublicProtocol {
case caseOne
case caseTwo
public var publicStruct: PublicStruct { return PublicStruct() }
}