From: Benjamin Kramer Date: Fri, 10 Jul 2015 11:37:54 +0000 (+0000) Subject: Reapply test for r241811 with a fix for msvc compat mode. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4c024e56f2d1f5580889adfb36801d5e4f244a66;p=clang Reapply test for r241811 with a fix for msvc compat mode. Delayed template parsing interferes with code completion, just distable it for this test. This reverts r241811. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@241899 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/Index/complete-ctor-inits.cpp b/test/Index/complete-ctor-inits.cpp index f50621466f..eb10ccdd3d 100644 --- a/test/Index/complete-ctor-inits.cpp +++ b/test/Index/complete-ctor-inits.cpp @@ -17,6 +17,18 @@ struct Z : public X, public Y { Z::Z() : ::X(0), Virt(), b(), c() { } +struct PR23948 { + template PR23948() + : + {} + + template void invalid() + : + {} + + int a; +}; + // RUN: c-index-test -code-completion-at=%s:18:10 %s | FileCheck -check-prefix=CHECK-CC1 %s // CHECK-CC1: MemberRef:{TypedText a}{LeftParen (}{Placeholder args}{RightParen )} (35) // CHECK-CC1: MemberRef:{TypedText b}{LeftParen (}{Placeholder args}{RightParen )} (35) @@ -38,3 +50,7 @@ Z::Z() : ::X(0), Virt(), b(), c() { } // CHECK-CC3: MemberRef:{TypedText c}{LeftParen (}{Placeholder args}{RightParen )} (7) // CHECK-CC3-NOT: NotImplemented:{TypedText Virt}{LeftParen (}{Placeholder args}{RightParen )} // CHECK-CC3: NotImplemented:{TypedText Y}{LeftParen (}{Placeholder args}{RightParen )} (35) + +// RUN: c-index-test -code-completion-at=%s:22:10 -fno-delayed-template-parsing %s | FileCheck -check-prefix=CHECK-CC4 %s +// CHECK-CC4: MemberRef:{TypedText a}{LeftParen (}{Placeholder args}{RightParen )} (7) +// RUN: c-index-test -code-completion-at=%s:26:10 %s