mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
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.
10 lines
415 B
Swift
10 lines
415 B
Swift
// RUN: rm -rf %t.dir
|
|
// RUN: mkdir %t.dir
|
|
// RUN: echo "let foo = 0" > %t.dir/real.swift
|
|
// RUN: ln -s %t.dir/real.swift %t.dir/linked.swift
|
|
// RUN: %sourcekitd-test -req=cursor -pos=1:5 %t.dir/linked.swift -- %t.dir/real.swift | FileCheck %s
|
|
// RUN: %sourcekitd-test -req=cursor -pos=1:5 %t.dir/real.swift -- %t.dir/linked.swift | FileCheck %s
|
|
|
|
// CHECK: source.lang.swift.decl.var.global (1:5-1:8)
|
|
// CHECK: foo
|