xref: /llvm-project/clang/test/Index/index-anonymous-union-fields.cpp (revision bf559a7f3fca4630b3e3511da18ab78d65a5e7ff)
1 struct X {
2   union {
3     void *a;
4   };
5 };
6 
7 // RUN: c-index-test -index-file %s > %t
8 // RUN: FileCheck %s -input-file=%t
9 
10 // CHECK: [indexDeclaration]: kind: field | name: a | {{.*}} | loc: 3:11
11