complete-stmt.c revision d2d8be6a27d0ef73d46039604682f7890e1cc3e0
1d2d8be6a27d0ef73d46039604682f7890e1cc3e0Douglas Gregor// Note: the run lines follow their respective tests, since line/column 2d2d8be6a27d0ef73d46039604682f7890e1cc3e0Douglas Gregor// matter in this test. 3d2d8be6a27d0ef73d46039604682f7890e1cc3e0Douglas Gregor 4d2d8be6a27d0ef73d46039604682f7890e1cc3e0Douglas Gregor 5d2d8be6a27d0ef73d46039604682f7890e1cc3e0Douglas Gregorvoid f(int x) { 6d2d8be6a27d0ef73d46039604682f7890e1cc3e0Douglas Gregor if (x) { 7d2d8be6a27d0ef73d46039604682f7890e1cc3e0Douglas Gregor } 8d2d8be6a27d0ef73d46039604682f7890e1cc3e0Douglas Gregor} 9d2d8be6a27d0ef73d46039604682f7890e1cc3e0Douglas Gregor 10d2d8be6a27d0ef73d46039604682f7890e1cc3e0Douglas Gregor// RUN: c-index-test -code-completion-at=%s:7:4 %s | FileCheck -check-prefix=CHECK-IF-ELSE %s 11d2d8be6a27d0ef73d46039604682f7890e1cc3e0Douglas Gregor// CHECK-IF-ELSE: NotImplemented:{TypedText else}{HorizontalSpace }{LeftBrace {}{VerticalSpace }{Placeholder statements}{VerticalSpace }{RightBrace }} (40) 12d2d8be6a27d0ef73d46039604682f7890e1cc3e0Douglas Gregor// CHECK-IF-ELSE: NotImplemented:{TypedText else}{HorizontalSpace }{Text if}{HorizontalSpace }{LeftParen (}{Placeholder expression}{RightParen )}{HorizontalSpace }{LeftBrace {}{VerticalSpace }{Placeholder statements}{VerticalSpace }{RightBrace }} (40) 13