| Douglas Gregor | 9720455 | 2010-08-29 19:20:21 +0000 | [diff] [blame^] | 1 | // The run lines are below, because this test is line- and | 
|  | 2 | // column-number sensitive. | 
|  | 3 |  | 
|  | 4 | template<typename T> | 
|  | 5 | struct X { | 
|  | 6 | X(T); | 
|  | 7 | }; | 
|  | 8 |  | 
|  | 9 | struct Virt { }; | 
|  | 10 | struct Y : virtual Virt { }; | 
|  | 11 |  | 
|  | 12 | struct Z : public X<int>, public Y { | 
|  | 13 | Z(); | 
|  | 14 |  | 
|  | 15 | int a, b, c; | 
|  | 16 | }; | 
|  | 17 |  | 
|  | 18 | Z::Z() : ::X<int>(0), Virt(), a() { } | 
|  | 19 |  | 
|  | 20 | // RUN: c-index-test -code-completion-at=%s:18:10 %s | FileCheck -check-prefix=CHECK-CC1 %s | 
|  | 21 | // CHECK-CC1: NotImplemented:{TypedText a}{LeftParen (}{Placeholder args}{RightParen )} (4) | 
|  | 22 | // CHECK-CC1: NotImplemented:{TypedText b}{LeftParen (}{Placeholder args}{RightParen )} (5) | 
|  | 23 | // CHECK-CC1: NotImplemented:{TypedText c}{LeftParen (}{Placeholder args}{RightParen )} (6) | 
|  | 24 | // CHECK-CC1: NotImplemented:{TypedText Virt}{LeftParen (}{Placeholder args}{RightParen )} (3) | 
|  | 25 | // CHECK-CC1: NotImplemented:{TypedText X<int>}{LeftParen (}{Placeholder args}{RightParen )} (1) | 
|  | 26 | // CHECK-CC1: NotImplemented:{TypedText Y}{LeftParen (}{Placeholder args}{RightParen )} (2) | 
|  | 27 |  | 
|  | 28 | // RUN: c-index-test -code-completion-at=%s:18:23 %s | FileCheck -check-prefix=CHECK-CC2 %s | 
|  | 29 | // CHECK-CC2: NotImplemented:{TypedText a}{LeftParen (}{Placeholder args}{RightParen )} (3) | 
|  | 30 | // CHECK-CC2: NotImplemented:{TypedText b}{LeftParen (}{Placeholder args}{RightParen )} (4) | 
|  | 31 | // CHECK-CC2: NotImplemented:{TypedText c}{LeftParen (}{Placeholder args}{RightParen )} (5) | 
|  | 32 | // CHECK-CC2: NotImplemented:{TypedText Virt}{LeftParen (}{Placeholder args}{RightParen )} (2) | 
|  | 33 | // CHECK-CC2: NotImplemented:{TypedText Y}{LeftParen (}{Placeholder args}{RightParen )} (1) |