Files
swift-mirror/test/IDE/complete_with_header_import.swift
Ben Langmuir 5f2bcba8ba Update tests for code-completion modulename change
Add module name to OtherModule result output and update the tests
accordingly.

Swift SVN r26262
2015-03-18 16:40:28 +00:00

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=.+$}}
}