mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
A parse-only option is needed for parse performance tracking and the current option also includes semantic analysis.
18 lines
641 B
Swift
18 lines
641 B
Swift
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -typecheck -parse-as-library -verify %s
|
|
|
|
// REQUIRES: objc_interop
|
|
|
|
import UIKit
|
|
|
|
@UIApplicationMain // expected-error{{'UIApplicationMain' attribute can only apply to one class in a module}}
|
|
class MyDelegate1: NSObject, UIApplicationDelegate {
|
|
}
|
|
|
|
@UIApplicationMain // expected-error{{'UIApplicationMain' attribute can only apply to one class in a module}}
|
|
class MyDelegate2: NSObject, UIApplicationDelegate {
|
|
}
|
|
|
|
@UIApplicationMain // expected-error{{'UIApplicationMain' attribute can only apply to one class in a module}}
|
|
class MyDelegate3: NSObject, UIApplicationDelegate {
|
|
}
|