diff options
author | Douglas Gregor <dgregor@apple.com> | 2010-08-29 19:20:21 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2010-08-29 19:20:21 +0000 |
commit | 97204552708cda46ce4adb27e81f6d295f02fec1 (patch) | |
tree | 64dd5e530d6b926e8d3aa00aa446b3d2ab8c74ac | |
parent | f459beb2fa7c5441eae4b1f5311f6a2ea60f6b00 (diff) |
Add missing test case for constructor-initializer code completions
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@112453 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | test/Index/complete-ctor-inits.cpp | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/test/Index/complete-ctor-inits.cpp b/test/Index/complete-ctor-inits.cpp new file mode 100644 index 0000000000..d1c517daf9 --- /dev/null +++ b/test/Index/complete-ctor-inits.cpp @@ -0,0 +1,33 @@ +// The run lines are below, because this test is line- and +// column-number sensitive. + +template<typename T> +struct X { + X(T); +}; + +struct Virt { }; +struct Y : virtual Virt { }; + +struct Z : public X<int>, public Y { + Z(); + + int a, b, c; +}; + +Z::Z() : ::X<int>(0), Virt(), a() { } + +// RUN: c-index-test -code-completion-at=%s:18:10 %s | FileCheck -check-prefix=CHECK-CC1 %s +// CHECK-CC1: NotImplemented:{TypedText a}{LeftParen (}{Placeholder args}{RightParen )} (4) +// CHECK-CC1: NotImplemented:{TypedText b}{LeftParen (}{Placeholder args}{RightParen )} (5) +// CHECK-CC1: NotImplemented:{TypedText c}{LeftParen (}{Placeholder args}{RightParen )} (6) +// CHECK-CC1: NotImplemented:{TypedText Virt}{LeftParen (}{Placeholder args}{RightParen )} (3) +// CHECK-CC1: NotImplemented:{TypedText X<int>}{LeftParen (}{Placeholder args}{RightParen )} (1) +// CHECK-CC1: NotImplemented:{TypedText Y}{LeftParen (}{Placeholder args}{RightParen )} (2) + +// RUN: c-index-test -code-completion-at=%s:18:23 %s | FileCheck -check-prefix=CHECK-CC2 %s +// CHECK-CC2: NotImplemented:{TypedText a}{LeftParen (}{Placeholder args}{RightParen )} (3) +// CHECK-CC2: NotImplemented:{TypedText b}{LeftParen (}{Placeholder args}{RightParen )} (4) +// CHECK-CC2: NotImplemented:{TypedText c}{LeftParen (}{Placeholder args}{RightParen )} (5) +// CHECK-CC2: NotImplemented:{TypedText Virt}{LeftParen (}{Placeholder args}{RightParen )} (2) +// CHECK-CC2: NotImplemented:{TypedText Y}{LeftParen (}{Placeholder args}{RightParen )} (1) |