aboutsummaryrefslogtreecommitdiff
path: root/test/Index/skipped-ranges.c
blob: f6c6c7f638ecd472b11cdcaaf6b9d8199f07797a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#define cool

#if defined(cool)

#if defined(really_cool)
#endif // really_cool

#elif defined(hot)
// hot


#endif // trailing comment

#ifndef cool
#ifndef uncool

int probably_hot = 1;

#endif // uncool
#endif // cool

// RUN: env CINDEXTEST_SHOW_SKIPPED_RANGES=1 c-index-test -test-annotate-tokens=%s:1:1:16:1 %s | FileCheck %s
// CHECK: Skipping: [5:1 - 6:7]
// CHECK: Skipping: [8:1 - 12:7]
// CHECK: Skipping: [14:1 - 20:7]