Files
swift-mirror/test/IDE/complete_from_reexport.swift
Dmitri Gribenko 984210aa53 tests: replace '// RUN: rm -rf' '// RUN: mkdir' pairs with '%empty-directory(...)'
These changes were made using a script.
2017-06-04 11:08:39 -07:00

23 lines
1.1 KiB
Swift

// RUN: %empty-directory(%t)
//
// RUN: %target-swift-frontend -emit-module -module-name FooSwiftModule %S/Inputs/foo_swift_module.swift -o %t
// RUN: %target-swift-frontend -emit-module -module-name FooSwiftModuleOverlay %S/Inputs/foo_swift_module_overlay.swift -I %t -o %t
//
// RUN: %target-swift-ide-test -code-completion -source-filename %s -code-completion-token=TOP_LEVEL_1 -I %t > %t.txt
// RUN: %FileCheck %s -check-prefix=TOP_LEVEL_1 < %t.txt
// RUN: %FileCheck %s -check-prefix=NO_DUPLICATES < %t.txt
// TOP_LEVEL_1: Begin completions
// TOP_LEVEL_1-DAG: Decl[FreeFunction]/OtherModule[FooSwiftModuleOverlay]: overlayedFoo()[#Void#]{{; name=.+$}}
// TOP_LEVEL_1-DAG: Decl[FreeFunction]/OtherModule[FooSwiftModuleOverlay]: onlyInFooOverlay()[#Void#]{{; name=.+$}}
// TOP_LEVEL_1: End completions
// FIXME: there should be only one instance of this completion result.
// NO_DUPLICATES: overlayedFoo()[#Void#]{{; name=.+$}}
// NO_DUPLICATES: overlayedFoo()[#Void#]{{; name=.+$}}
// NO_DUPLICATES-NOT: overlayedFoo()[#Void#]{{; name=.+$}}
import FooSwiftModuleOverlay
#^TOP_LEVEL_1^#