mirror of
https://github.com/apple/swift.git
synced 2026-02-27 18:26:24 +01:00
This is necessary to disambiguate some symbols with the same path components and makes the data clearer to debug. rdar://problem/59841727
11 lines
415 B
Swift
11 lines
415 B
Swift
// RUN: %empty-directory(%t)
|
|
// RUN: %target-build-swift %s -module-name Struct -emit-module -emit-module-path %t/
|
|
// RUN: %target-swift-symbolgraph-extract -module-name Struct -I %t -pretty-print -output-dir %t
|
|
// RUN: %FileCheck %s --input-file %t/Struct.symbols.json
|
|
|
|
// CHECK: "identifier": "swift.struct"
|
|
// CHECK-NEXT: "displayName": "Structure"
|
|
// CHECK: pathComponents
|
|
// CHECK-NEXT: "S"
|
|
public struct S {}
|