aboutsummaryrefslogtreecommitdiff
path: root/test/CodeCompletion/enum-switch-case.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeCompletion/enum-switch-case.c')
-rw-r--r--test/CodeCompletion/enum-switch-case.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/test/CodeCompletion/enum-switch-case.c b/test/CodeCompletion/enum-switch-case.c
index 08488f75c1..255fbbce2d 100644
--- a/test/CodeCompletion/enum-switch-case.c
+++ b/test/CodeCompletion/enum-switch-case.c
@@ -1,6 +1,3 @@
-// RUN: clang-cc -fsyntax-only -code-completion-dump=1 %s -o - | FileCheck -check-prefix=CC1 %s &&
-// RUN: true
-
enum Color {
Red,
Orange,
@@ -19,9 +16,14 @@ void test(enum Color color) {
case Yellow:
break;
+ case Green:
+ break;
+
+ // RUN: clang-cc -fsyntax-only -code-completion-at=%s:19:10 %s -o - | FileCheck -check-prefix=CC1 %s &&
// CHECK-CC1: Blue : 0
// CHECK-NEXT-CC1: Green : 0
// CHECK-NEXT-CC1: Indigo : 0
// CHECK-NEXT-CC1: Orange : 0
// CHECK-NEXT-CC1: Violet : 0
- case
+ // RUN: true
+