Files
swift-mirror/test/IRGen/objc_remapped_inits.swift
Michael Gottesman fd4828e40a Eliminate -assume-parsing-unqualified-ownership-sil from tests.
I am doing this separately from the actual change to eliminate the option to
make it easier to review.
2018-12-19 12:54:13 -08:00

15 lines
621 B
Swift

// RUN: %target-swift-frontend %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)