Skip to content

Commit b42b0ed

Browse files
test that the "location" field only shows up on Swift symbols
1 parent 9eb24cc commit b42b0ed

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/SymbolGraph/ClangImporter/EmitWhileBuilding.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
// RUN: %{python} -m json.tool %t/EmitWhileBuilding.symbols.json %t/EmitWhileBuilding.formatted.symbols.json
55
// RUN: %FileCheck %s --input-file %t/EmitWhileBuilding.formatted.symbols.json
66
// RUN: %FileCheck %s --input-file %t/EmitWhileBuilding.formatted.symbols.json --check-prefix HEADER
7+
// RUN: %FileCheck %s --input-file %t/EmitWhileBuilding.formatted.symbols.json --check-prefix LOCATION
78

89
// REQUIRES: objc_interop
910

@@ -28,3 +29,6 @@ public enum SwiftEnum {}
2829
// CHECK-NEXT: "spelling": "SwiftEnum"
2930
// CHECK-NEXT: }
3031
// CHECK-NEXT: ],
32+
33+
// ensure that the only nodes with a "location" field are the ones that came from Swift
34+
// LOCATION-COUNT-2: "location":

0 commit comments

Comments
 (0)