mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Add module name to OtherModule result output and update the tests accordingly. Swift SVN r26262
16 lines
753 B
Swift
16 lines
753 B
Swift
// RUN: %target-swift-ide-test -code-completion -source-filename %s -code-completion-token=TOP -import-objc-header %S/Inputs/header.h | FileCheck %s -check-prefix=CHECK-TOP
|
|
// RUN: %target-swift-ide-test -code-completion -source-filename %s -code-completion-token=TYPE -import-objc-header %S/Inputs/header.h | FileCheck %s -check-prefix=CHECK-TYPE
|
|
|
|
// REQUIRES: objc_interop
|
|
|
|
func foo() {
|
|
#^TOP^#
|
|
// CHECK-TOP: Decl[FreeFunction]/OtherModule[__ObjC]: doSomethingInHead({#(arg): Int32#})[#Void#]{{; name=.+$}}
|
|
}
|
|
|
|
func bar() {
|
|
let _: #^TYPE^#
|
|
// CHECK-TYPE-DAG: Decl[Class]/OtherModule[__ObjC]: SameName[#SameName#]{{; name=.+$}}
|
|
// CHECK-TYPE-DAG: Decl[Protocol]/OtherModule[__ObjC]: SameNameProtocol[#SameNameProtocol#]{{; name=.+$}}
|
|
}
|