Files
swift-mirror/test/DebugInfo/scopes.swift
Duncan Exon Smith c6d42db070 Adapt to MD* => DI* renaming of debug info types
Applied the upgrade script from r236120 (LLVM) and r236121 (CFE).  This is the
final step of rdar://problem/20434113.



Swift SVN r27925
2015-04-29 21:40:21 +00:00

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
}
}