summaryrefslogtreecommitdiffstats
path: root/test/Index/complete-enums.c
blob: 5e712a11227f14e9342334ca706637ea2e0d1642 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// Note: the run lines follow their respective tests, since line/column
// matter in this test.

enum {
  Red = 17,
  Green,
  Blue
};

void f() {
  
}

// RUN: c-index-test -code-completion-at=%s:11:1 %s | FileCheck -check-prefix=CHECK-CC1 %s
// CHECK-CC1: EnumConstantDecl:{ResultType enum <anonymous>}{TypedText Red}
OpenPOWER on IntegriCloud