summaryrefslogtreecommitdiffstats
path: root/test/Index/complete-enums.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/Index/complete-enums.c')
-rw-r--r--test/Index/complete-enums.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/Index/complete-enums.c b/test/Index/complete-enums.c
new file mode 100644
index 0000000..5e712a1
--- /dev/null
+++ b/test/Index/complete-enums.c
@@ -0,0 +1,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