mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Applied the upgrade script from r236120 (LLVM) and r236121 (CFE). This is the final step of rdar://problem/20434113. Swift SVN r27925
30 lines
814 B
Swift
30 lines
814 B
Swift
// RUN: %target-swift-frontend -g -emit-ir %s | FileCheck %s
|
|
|
|
class UIViewController {
|
|
}
|
|
|
|
class UISplitViewController : UIViewController {
|
|
var delegate : UIViewController?
|
|
}
|
|
|
|
class UIWindow {
|
|
var rootViewController: UIViewController?
|
|
}
|
|
|
|
class AppDelegate {
|
|
var window: UIWindow?
|
|
|
|
func application() -> Bool {
|
|
// CHECK-DAG: !DILexicalBlock({{.*}}line: [[@LINE+1]], column: 13
|
|
if true {
|
|
// Verify that all debug line table entries for the expression
|
|
// below are in the same scope.
|
|
//
|
|
// CHECK-DAG: !{{.*}} = !DILocation(line: [[@LINE+2]], column: 46, scope: ![[S:.*]])
|
|
// CHECK-DAG: !{{.*}} = !DILocation(line: [[@LINE+1]], column: 11, scope: ![[S]])
|
|
let splitViewController = self.window!.rootViewController as! UISplitViewController
|
|
}
|
|
return true
|
|
}
|
|
}
|