]> granicus.if.org Git - clang/commitdiff
Add a test case for code-completion in the presence of tabs
authorDouglas Gregor <dgregor@apple.com>
Thu, 7 Jan 2010 00:40:35 +0000 (00:40 +0000)
committerDouglas Gregor <dgregor@apple.com>
Thu, 7 Jan 2010 00:40:35 +0000 (00:40 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@92882 91177308-0d34-0410-b5e6-96231b3b80d8

test/Index/complete-tabs.c [new file with mode: 0644]

diff --git a/test/Index/complete-tabs.c b/test/Index/complete-tabs.c
new file mode 100644 (file)
index 0000000..f3313bf
--- /dev/null
@@ -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}