mirror of
https://github.com/apple/swift.git
synced 2026-06-20 15:42:51 +02:00
72dbdb097d
rdar://61178480
17 lines
465 B
Swift
17 lines
465 B
Swift
// RUN: %empty-directory(%t)
|
|
// RUN: %target-build-swift %s -module-name Basic -emit-module -emit-module-path %t/
|
|
// RUN: %target-swift-symbolgraph-extract -module-name Basic -I %t -pretty-print -output-dir %t
|
|
// RUN: %FileCheck %s --input-file %t/Basic.symbols.json
|
|
|
|
public protocol P {
|
|
var x: Int { get }
|
|
}
|
|
|
|
public struct S: P {
|
|
public var x: Int
|
|
}
|
|
|
|
// CHECK: "kind": "conformsTo"
|
|
// CHECK-NEXT: "source": "s:5Basic1SV"
|
|
// CHECK-NEXT: "target": "s:5Basic1PP"
|