Files
swift-mirror/test/SourceKit/CodeComplete/complete_playground_symlink.swift
Argyrios Kyrtzidis 8ff6a98a99 [sourcekit] Merge SourceKit into the Swift repo.
The code goes into its own sub-tree under 'tools' but tests go under 'test',
so that running 'check-swift' will also run all the SourceKit tests.

SourceKit is disabled on non-darwin platforms.
2015-11-05 01:09:08 -08:00

10 lines
537 B
Swift

// RUN: rm -rf %t.dir
// RUN: mkdir -p %t.dir/test.playground
// RUN: echo "let foo_blah = 0" > %t.dir/input.swift
// RUN: echo "" >> %t.dir/input.swift
// RUN: ln -s %t.dir/test.playground %t.dir/linked.playground
// RUN: %sourcekitd-test -req=complete -pos=2:1 -text-input %t.dir/input.swift %t.dir/test.playground -- %t.dir/test.playground | FileCheck %s
// RUN: %sourcekitd-test -req=complete -pos=2:1 -text-input %t.dir/input.swift %t.dir/linked.playground -- %t.dir/linked.playground | FileCheck %s
// CHECK: key.name: "foo_blah"