summaryrefslogtreecommitdiffstats
path: root/clang
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2011-10-19 04:17:22 +0000
committerDouglas Gregor <dgregor@apple.com>2011-10-19 04:17:22 +0000
commitdab63c14348538d85139435a016def624527124e (patch)
treeca512508458b99c35a417e8ed8b967c2e5880f72 /clang
parent4e8b13613bd1573ad02585378227e7ef0e65c50c (diff)
downloadbcm5719-llvm-dab63c14348538d85139435a016def624527124e.tar.gz
bcm5719-llvm-dab63c14348538d85139435a016def624527124e.zip
Tweak this test to test more directly what we want, and hopefully work around the brokenness of code completion under -fdelayed-template-parsing
llvm-svn: 142472
Diffstat (limited to 'clang')
-rw-r--r--clang/test/Index/complete-exprs.cpp12
1 files changed, 10 insertions, 2 deletions
diff --git a/clang/test/Index/complete-exprs.cpp b/clang/test/Index/complete-exprs.cpp
index 6be5b83178c..6b7f2f9e917 100644
--- a/clang/test/Index/complete-exprs.cpp
+++ b/clang/test/Index/complete-exprs.cpp
@@ -26,6 +26,14 @@ void g() {
vector<int>(foo(), foo());
}
+struct X {
+ void f() const;
+};
+
+void X::f() const {
+
+}
+
// RUN: c-index-test -code-completion-at=%s:20:2 %s -std=c++0x | FileCheck -check-prefix=CHECK-CC1 %s
// RUN: env CINDEXTEST_EDITING=1 CINDEXTEST_COMPLETION_CACHING=1 c-index-test -code-completion-at=%s:20:2 -std=c++0x %s | FileCheck -check-prefix=CHECK-CC1 %s
// CHECK-CC1: NotImplemented:{ResultType size_t}{TypedText alignof}{LeftParen (}{Placeholder type}{RightParen )} (40)
@@ -55,5 +63,5 @@ void g() {
// CHECK-CC3: CXXConstructor:{TypedText vector}{LeftAngle <}{Placeholder typename T}{RightAngle >}{LeftParen (}{Placeholder const T &}{Comma , }{Placeholder unsigned int n}{RightParen )} (50)
// CHECK-CC3: FunctionTemplate:{ResultType void}{TypedText vector}{LeftAngle <}{Placeholder typename T}{RightAngle >}{LeftParen (}{Placeholder InputIterator first}{Comma , }{Placeholder InputIterator last}{RightParen )} (50)
-// RUN: c-index-test -code-completion-at=%s:18:59 %s -std=c++0x | FileCheck -check-prefix=CHECK-CC4 %s
-// CHECK-CC4: NotImplemented:{ResultType vector<T> *}{TypedText this} (40)
+// RUN: c-index-test -code-completion-at=%s:34:1 %s -std=c++0x | FileCheck -check-prefix=CHECK-CC4 %s
+// CHECK-CC4: NotImplemented:{ResultType const X *}{TypedText this} (40)
OpenPOWER on IntegriCloud