diff options
Diffstat (limited to 'test/Index/complete-switch.c')
| -rw-r--r-- | test/Index/complete-switch.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/Index/complete-switch.c b/test/Index/complete-switch.c new file mode 100644 index 000000000000..9a9438c28d31 --- /dev/null +++ b/test/Index/complete-switch.c @@ -0,0 +1,10 @@ +void f() { + auto foo = bar; + switch(foo) { + case x: + break; + } +} + +// RUN: not %clang_cc1 -fsyntax-only -code-completion-at=%s:4:10 %s | FileCheck %s -allow-empty +// CHECK-NOT: COMPLETION: foo |
