• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // RUN: c-index-test -test-inclusion-stack-source %s 2>&1 | FileCheck %s
2 
3 #include "include_test.h"
4 
5 // CHECK: cindex-test-inclusions.c
6 // CHECK: included by:
7 // CHECK: include_test.h
8 // CHECK: included by:
9 // CHECK: cindex-test-inclusions.c:3:10
10 // CHECK: include_test_2.h
11 // CHECK: included by:
12 // CHECK: include_test.h:1:10
13 // CHECK: cindex-test-inclusions.c:3:10
14 
15 // RUN: env CINDEXTEST_EDITING=1 c-index-test -test-inclusion-stack-source %s 2>&1 | FileCheck -check-prefix=REPARSE %s
16 // REPARSE: include_test_2.h
17 // REPARSE: included by:
18 // REPARSE: include_test.h:1:10
19 // REPARSE: cindex-test-inclusions.c:3:10
20 // REPARSE: include_test.h
21 // REPARSE: included by:
22 // REPARSE: cindex-test-inclusions.c:3:10
23 // REPARSE: cindex-test-inclusions.c
24 // REPARSE: included by:
25