summaryrefslogtreecommitdiff
path: root/test/Index/index-anonymous-union-fields.cpp
blob: 30f254d11095671ce4f0a2d14c11aaf9d90690ff (plain)
1
2
3
4
5
6
7
8
9
10
struct X {
  union {
    void *a;
  };
};

// RUN: c-index-test -index-file %s > %t
// RUN: FileCheck %s -input-file=%t

// CHECK: [indexDeclaration]: kind: field | name: a | {{.*}} | loc: 3:11