Files
swift-mirror/test/SourceKit/CursorInfo/cursor_symlink.swift
Gwen Mittertreiner 30788eca59 [Windows] Create symlinks properly in lit tests
The mingw `ln -s` doesn't make a proper symlink on Windows. Instead add a
script to use `cmd.exe /C mklink ...` on Windows.
2019-08-14 16:07:25 -07:00

9 lines
438 B
Swift

// RUN: %empty-directory(%t.dir)
// RUN: echo "let foo = 0" > %t.dir/real.swift
// RUN: %{python} %S/../../Inputs/symlink.py %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