mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
15 lines
663 B
Swift
15 lines
663 B
Swift
// RUN: %target-swift-frontend -assume-parsing-unqualified-ownership-sil %s -emit-ir -disable-objc-attr-requires-foundation-module | %FileCheck %s
|
|
|
|
// FIXME: This test could use %clang-importer-sdk, but the compiler crashes.
|
|
|
|
// REQUIRES: OS=ios
|
|
// REQUIRES: objc_interop
|
|
|
|
import UIKit
|
|
|
|
// CHECK-NOT: (initWithTitle:delegate:cancelButtonTitle:destructiveButtonTitle:otherButtonTitles:)
|
|
// CHECK: (initWithTitle:delegate:cancelButtonTitle:destructiveButtonTitle:)
|
|
// CHECK-NOT: (initWithTitle:delegate:cancelButtonTitle:destructiveButtonTitle:otherButtonTitles:)
|
|
|
|
_ = UIActionSheet(title: "abc", delegate: nil, cancelButtonTitle: nil, destructiveButtonTitle: nil)
|