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
14 lines
780 B
Swift
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
|