From d488d9cfefc06373fc0f18ec334a5caa8d73e5c9 Mon Sep 17 00:00:00 2001 From: Douglas Gregor Date: Thu, 7 Jan 2010 00:40:35 +0000 Subject: [PATCH] Add a test case for code-completion in the presence of tabs git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@92882 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/Index/complete-tabs.c | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 test/Index/complete-tabs.c diff --git a/test/Index/complete-tabs.c b/test/Index/complete-tabs.c new file mode 100644 index 0000000000..f3313bfbb8 --- /dev/null +++ b/test/Index/complete-tabs.c @@ -0,0 +1,9 @@ +// Test code-completion in the presence of tabs +struct Point { int x, y; }; + +void f(struct Point *p) { + p-> + +// RUN: c-index-test -code-completion-at=%s:5:5 %s | FileCheck -check-prefix=CHECK-CC1 %s +// CHECK-CC1: {TypedText x} +// CHECK-CC1: {TypedText y} -- 2.50.1