mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
18 lines
744 B
Swift
18 lines
744 B
Swift
// RUN: %empty-directory(%t)
|
|
// RUN: %sourcekitd-test -req=index-to-store %s -index-store-path %t/idx -index-unit-output-path %t/indexstore_with_remappings.o -- -c -module-name indexstoremodule -file-prefix-map %S=REMAPPED_SRC_ROOT -file-prefix-map %t=REMAPPED_OUT_DIR %s
|
|
// RUN: c-index-test core -print-unit %t/idx | %FileCheck %s
|
|
|
|
class Foo {
|
|
let member: Int
|
|
init(member: Int) {
|
|
self.member = member
|
|
}
|
|
}
|
|
|
|
// CHECK: indexstore_with_remappings.o-{{.*}}
|
|
// CHECK: module-name: indexstoremodule
|
|
// CHECK: main-path: REMAPPED_SRC_ROOT{{/|\\}}indexstore_with_remappings.swift
|
|
// CHECK: out-file: REMAPPED_OUT_DIR{{/|\\}}indexstore_with_remappings.o
|
|
// CHECK: is-debug: 1
|
|
// CHECK: Unit | system | Swift | {{.*}}{{/|\\}}Swift.swiftmodule
|