xref: /minix3/external/bsd/llvm/dist/clang/test/CoverageMapping/casts.c (revision 0a6a1f1d05b60e214de2f05a7310ddd1f0e590e7)
1*0a6a1f1dSLionel Sambuc // RUN: %clang_cc1 -fprofile-instr-generate -fcoverage-mapping -dump-coverage-mapping -emit-llvm-only -main-file-name casts.c %s | FileCheck %s
2*0a6a1f1dSLionel Sambuc 
main()3*0a6a1f1dSLionel Sambuc int main() {                                                   // CHECK: File 0, [[@LINE]]:12 -> [[@LINE+4]]:2 = #0 (HasCodeBefore = 0)
4*0a6a1f1dSLionel Sambuc                                                                // CHECK-NEXT: File 0, [[@LINE+1]]:41 -> [[@LINE+1]]:54 = #1 (HasCodeBefore = 0)
5*0a6a1f1dSLionel Sambuc   int window_size = (sizeof(int) <= 2 ? (unsigned)512 : 1024); // CHECK-NEXT: File 0, [[@LINE]]:57 -> [[@LINE]]:61 = (#0 - #1) (HasCodeBefore = 0)
6*0a6a1f1dSLionel Sambuc   return 0;
7*0a6a1f1dSLionel Sambuc }
8*0a6a1f1dSLionel Sambuc 
9*0a6a1f1dSLionel Sambuc 
10*0a6a1f1dSLionel Sambuc 
11*0a6a1f1dSLionel Sambuc 
12