diff options
| author | Benjamin Kramer <benny.kra@googlemail.com> | 2015-07-10 11:37:54 +0000 |
|---|---|---|
| committer | Benjamin Kramer <benny.kra@googlemail.com> | 2015-07-10 11:37:54 +0000 |
| commit | 3cfdf2043c6e750236859dcef44c26034faf4893 (patch) | |
| tree | aba616eb0b3b6e75a04bec98fdf28aad6d4a3300 /clang/test/Index | |
| parent | 6e2cea6f0c832f6c017b7e51e3e35edadf57b5d7 (diff) | |
| download | bcm5719-llvm-3cfdf2043c6e750236859dcef44c26034faf4893.tar.gz bcm5719-llvm-3cfdf2043c6e750236859dcef44c26034faf4893.zip | |
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.
llvm-svn: 241899
Diffstat (limited to 'clang/test/Index')
| -rw-r--r-- | clang/test/Index/complete-ctor-inits.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/clang/test/Index/complete-ctor-inits.cpp b/clang/test/Index/complete-ctor-inits.cpp index f50621466f1..eb10ccdd3d2 100644 --- a/clang/test/Index/complete-ctor-inits.cpp +++ b/clang/test/Index/complete-ctor-inits.cpp @@ -17,6 +17,18 @@ struct Z : public X<int>, public Y { Z::Z() : ::X<int>(0), Virt(), b(), c() { } +struct PR23948 { + template<class size> PR23948() + : + {} + + template<class size> 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<int>(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 |

