Files
swift-mirror/test/SourceKit/Mixed/complete_twice_bridging_header.swift
2017-06-04 11:08:39 -07:00

14 lines
786 B
Swift

// REQUIRES: objc_interop
// RUN: %empty-directory(%t)
// RUN: %sourcekitd-test -req=complete -pos=8:5 %s -- %s -module-name Mixed -pch-output-dir %t -import-objc-header %S/Inputs/header.h == -req=complete -pos=8:5 %s -- %s -module-name Mixed -pch-output-dir %t -import-objc-header %S/Inputs/header.h | %FileCheck %s --check-prefix=CHECK-MEMBERS
// RUN: %sourcekitd-test -req=complete -pos=9:1 %s -- %s -module-name Mixed -pch-output-dir %t -import-objc-header %S/Inputs/header.h == -req=complete -pos=9:1 %s -- %s -module-name Mixed -pch-output-dir %t -import-objc-header %S/Inputs/header.h | %FileCheck %s --check-prefix=CHECK-GLOBALS
// RUN: stat %t/*.pch
func foo(x: BaseInHead) {
x.
}
// CHECK-GLOBALS: doSomethingInHead(:)
// CHECK-GLOBALS: test1(:)
// CHECK-MEMBERS: doIt(:)