aboutsummaryrefslogtreecommitdiff
path: root/test/Index/complete-stmt.c
blob: 98fa9df44db371d90f154095933cac98b6ac0ea5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
// Note: the run lines follow their respective tests, since line/column
// matter in this test.


void f(int x) {
  if (x) {
  } 
}

// RUN: c-index-test -code-completion-at=%s:7:4 %s | FileCheck -check-prefix=CHECK-IF-ELSE %s
// CHECK-IF-ELSE: NotImplemented:{TypedText else}{HorizontalSpace  }{LeftBrace {}{VerticalSpace  }{Placeholder statements}{VerticalSpace  }{RightBrace }} (40)
// CHECK-IF-ELSE: NotImplemented:{TypedText else}{HorizontalSpace  }{Text if}{HorizontalSpace  }{LeftParen (}{Placeholder expression}{RightParen )}{HorizontalSpace  }{LeftBrace {}{VerticalSpace  }{Placeholder statements}{VerticalSpace  }{RightBrace }} (40)