Skip to content

Commit de5f5c3

Browse files
committed
[embedded] Add an indexer test for Embedded Swift
1 parent adb3698 commit de5f5c3

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

test/Index/index_embedded.swift

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
// RUN: %target-swift-ide-test -print-indexed-symbols -source-filename %s -enable-experimental-feature Embedded -target %target-cpu-apple-macos14 | %FileCheck %s
2+
3+
// REQUIRES: OS=macosx
4+
// REQUIRES: embedded_stdlib
5+
// REQUIRES: swift_in_compiler
6+
7+
struct SomeStruct {
8+
func simple(_ someClosure: () -> Void) { }
9+
}
10+
11+
func test(s: SomeStruct) {
12+
s.simple { }
13+
// CHECK: [[@LINE-1]]:5 | instance-method/Swift | simple(_:) | s:14swift_ide_test10SomeStructV6simpleyyyyXEF | Ref,Call,RelCall,RelCont | rel: 1
14+
}

0 commit comments

Comments
 (0)