Files
swift-mirror/test/DebugInfo/sdk.swift
Adrian Prantl 035a1175df Debug info: Ensure that the SDK is emitted if it is implicit. Also do a
slightly better job at quoting.
<rdar://problem/15808224> Point ClangImporter at the right SDK for the target

Swift SVN r12310
2014-01-15 01:51:41 +00:00

6 lines
469 B
Swift

// Check that the sdk ends up in the debug info.
// RUN: %swift %s -emit-llvm -g -o - | FileCheck %s
// RUN: %swift %s -emit-llvm -sdk="/Weird Location/SDK" -g -o - | FileCheck --check-prefix CHECK-EXPLICIT %s
// CHECK: metadata !"Swift version {{.*}} (based on LLVM {{.*}})", i1 false, metadata !"{{.*}} -sdk={{.*}}"
// CHECK-EXPLICIT: metadata !"Swift version {{.*}} (based on LLVM {{.*}})", i1 false, metadata !"{{.*}} \22-sdk=/Weird Location/SDK\22{{.*}}"