mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
* Fixup tests to handle new json based output. * Use llvm-nm & readtapi to verify tbd file outputs. resolves: rdar://117604275
15 lines
541 B
Swift
15 lines
541 B
Swift
// REQUIRES: VENDOR=apple
|
|
// RUN: %empty-directory(%t)
|
|
|
|
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -emit-ir -o/dev/null -parse-as-library -module-name test -validate-tbd-against-ir=missing %s -I %S/Inputs/ -disable-objc-attr-requires-foundation-module -emit-tbd -emit-tbd-path %t/test.tbd -tbd-install_name objc_err
|
|
|
|
import Foundation
|
|
@_exported import CustomError
|
|
|
|
extension CustomError : CustomStringConvertible {
|
|
public var description: String {
|
|
let nsError = self as NSError
|
|
return nsError.description
|
|
}
|
|
}
|