xref: /minix3/external/bsd/llvm/dist/clang/test/Index/skipped-ranges.c (revision 0a6a1f1d05b60e214de2f05a7310ddd1f0e590e7)
1*0a6a1f1dSLionel Sambuc #define cool
2*0a6a1f1dSLionel Sambuc 
3*0a6a1f1dSLionel Sambuc #if defined(cool)
4*0a6a1f1dSLionel Sambuc 
5*0a6a1f1dSLionel Sambuc #if defined(really_cool)
6*0a6a1f1dSLionel Sambuc #endif // really_cool
7*0a6a1f1dSLionel Sambuc 
8*0a6a1f1dSLionel Sambuc #elif defined(hot)
9*0a6a1f1dSLionel Sambuc // hot
10*0a6a1f1dSLionel Sambuc 
11*0a6a1f1dSLionel Sambuc 
12*0a6a1f1dSLionel Sambuc #endif // trailing comment
13*0a6a1f1dSLionel Sambuc 
14*0a6a1f1dSLionel Sambuc #ifndef cool
15*0a6a1f1dSLionel Sambuc #ifndef uncool
16*0a6a1f1dSLionel Sambuc 
17*0a6a1f1dSLionel Sambuc int probably_hot = 1;
18*0a6a1f1dSLionel Sambuc 
19*0a6a1f1dSLionel Sambuc #endif // uncool
20*0a6a1f1dSLionel Sambuc #endif // cool
21*0a6a1f1dSLionel Sambuc 
22*0a6a1f1dSLionel Sambuc // RUN: env CINDEXTEST_SHOW_SKIPPED_RANGES=1 c-index-test -test-annotate-tokens=%s:1:1:16:1 %s | FileCheck %s
23*0a6a1f1dSLionel Sambuc // CHECK: Skipping: [5:2 - 6:7]
24*0a6a1f1dSLionel Sambuc // CHECK: Skipping: [8:2 - 12:7]
25*0a6a1f1dSLionel Sambuc // CHECK: Skipping: [14:2 - 20:7]
26