Files
swift-mirror/test/DebugInfo/sdk.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

14 lines
780 B
Swift

// Check that the sdk and resource dirs end up in the debug info.
// RUN: %target-swiftc_driver %s -emit-ir -g -o - | FileCheck %s
// RUN: %target-swiftc_driver %s -emit-ir -sdk "/Weird Location/SDK" -g -o - | FileCheck --check-prefix CHECK-EXPLICIT %s
// CHECK: !DICompileUnit({{.*}}producer: "{{(Apple )?Swift version [^"]+}}"
// CHECK-SAME: flags: "
// CHECK-NOT: "
// CHECK-SAME: -resource-dir
// CHECK-EXPLICIT: !DICompileUnit({{.*}}producer: "{{(Apple )?Swift version [^"]+}}"
// CHECK-EXPLICIT-SAME: flags: "
// CHECK-EXPLICIT-NOT: "
// CHECK-EXPLICIT-SAME: -sdk \22/Weird Location/SDK\22
// CHECK-EXPLICIT-NOT: "
// CHECK-EXPLICIT-SAME: -resource-dir