@@ -191,4 +191,44 @@ union Vector {
191191// VEC-DAG: "!testRelLabel": "memberOf $ c:@U@Vector@Sa@FI@X $ c:@U@Vector"
192192// VEC-DAG: "!testRelLabel": "memberOf $ c:@U@Vector@Sa@FI@Y $ c:@U@Vector"
193193
194+ // RUN: FileCheck %s --input-file %t/output-c.symbols.json --check-prefix MYSTRUCT
195+ // RUN: FileCheck %s --input-file %t/output-cxx.symbols.json --check-prefix MYSTRUCT
196+ // RUN: FileCheck %s --input-file %t/output-c.symbols.json --check-prefix COUNTS
197+ // RUN: FileCheck %s --input-file %t/output-cxx.symbols.json --check-prefix COUNTS
198+ struct MyStruct {
199+ struct {
200+ int count ;
201+ } counts [1 ];
202+ };
203+ // MYSTRUCT-NOT: "spelling": ""
204+ // MYSTRUCT-NOT: "title": ""
205+
206+ // COUNTS-LABEL: "!testLabel": "c:@S@MyStruct@FI@counts"
207+ // COUNTS: "declarationFragments": [
208+ // COUNTS-NEXT: {
209+ // COUNTS-NEXT: "kind": "keyword",
210+ // COUNTS-NEXT: "spelling": "struct"
211+ // COUNTS-NEXT: },
212+ // COUNTS-NEXT: {
213+ // COUNTS-NEXT: "kind": "text",
214+ // COUNTS-NEXT: "spelling": " { ... } "
215+ // COUNTS-NEXT: },
216+ // COUNTS-NEXT: {
217+ // COUNTS-NEXT: "kind": "identifier",
218+ // COUNTS-NEXT: "spelling": "counts"
219+ // COUNTS-NEXT: },
220+ // COUNTS-NEXT: {
221+ // COUNTS-NEXT: "kind": "text",
222+ // COUNTS-NEXT: "spelling": "["
223+ // COUNTS-NEXT: },
224+ // COUNTS-NEXT: {
225+ // COUNTS-NEXT: "kind": "number",
226+ // COUNTS-NEXT: "spelling": "1"
227+ // COUNTS-NEXT: },
228+ // COUNTS-NEXT: {
229+ // COUNTS-NEXT: "kind": "text",
230+ // COUNTS-NEXT: "spelling": "];"
231+ // COUNTS-NEXT: }
232+ // COUNTS-NEXT: ],
233+
194234// expected-no-diagnostics
0 commit comments