mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +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.
16 lines
680 B
Swift
16 lines
680 B
Swift
import Foundation
|
|
|
|
var x = NSUTF8StringEncoding
|
|
|
|
var d : AnyGenerator<Int>
|
|
|
|
// RUN: %sourcekitd-test -req=cursor -pos=3:18 %s -- %s %mcp_opt %clang-importer-sdk | FileCheck -check-prefix=CHECK-OVERLAY %s
|
|
// CHECK-OVERLAY: source.lang.swift.ref.var.global
|
|
// CHECK-OVERLAY-NEXT: NSUTF8StringEncoding
|
|
// CHECK-OVERLAY-NEXT: s:v10Foundation20NSUTF8StringEncodingSu
|
|
// CHECK-OVERLAY-NEXT: UInt
|
|
// CHECK-OVERLAY-NEXT: <Declaration>public let NSUTF8StringEncoding: <Type usr="s:Su">UInt</Type></Declaration>
|
|
|
|
// RUN: %sourcekitd-test -req=cursor -pos=5:13 %s -- %s %mcp_opt %clang-importer-sdk | FileCheck -check-prefix=CHECK-GENERATOR %s
|
|
// CHECK-GENERATOR-NOT: _AnyGeneratorBase
|