Files
swift-mirror/test/SILGen/Inputs/UIApplicationMain-helper.swift
Jordan Rose 1edaafaaa4 [SILGen] Use the signature of the real UIApplicationMain.
...instead of trying to guess it ourselves.

My previous attempt at this (part of the optional pointers work,
bc83940) made a critical mistake because our only test case /also/
referenced UIApplicationMain directly. I've made the test case test
several more situations, and also added what /would/ be an
execution test if our simulator testing handled UI-based tests.

rdar://problem/25712303
2016-04-14 09:20:19 -07:00

13 lines
186 B
Swift

import Foundation
import UIKit
public func publicFoo(x: AnyObject.Type) -> String {
return NSStringFromClass(x)
}
public func publicBar() {
UIApplicationMain(0, nil, nil, nil)
}