xref: /llvm-project/clang/test/CoverageMapping/include-macros.c (revision 25098736c1b6a716711a64fa45f7f34ccdbef6d1)
19caa3fbeSZequan Wu // RUN: %clang_cc1 -mllvm -emptyline-comment-coverage=false -fprofile-instrument=clang -fcoverage-mapping -dump-coverage-mapping -emit-llvm-only -main-file-name include-macros.c %s | FileCheck %s
295a2a7f2SVedant Kumar 
395a2a7f2SVedant Kumar #include "Inputs/macros.h"
495a2a7f2SVedant Kumar 
f1(void)5*25098736SAaron Ballman void f1(void) {
695a2a7f2SVedant Kumar   M2("a", "b");
795a2a7f2SVedant Kumar }
895a2a7f2SVedant Kumar 
995a2a7f2SVedant Kumar // CHECK-LABEL: f1:
10*25098736SAaron Ballman // CHECK-NEXT:   File 0, 5:15 -> 7:2 = #0
1195a2a7f2SVedant Kumar // CHECK-NEXT:   Expansion,File 0, 6:3 -> 6:5 = #0 (Expanded file = 1)
1295a2a7f2SVedant Kumar // CHECK-NEXT:   File 1, 13:20 -> 13:50 = #0
1395a2a7f2SVedant Kumar // CHECK-NEXT:   Expansion,File 1, 13:20 -> 13:22 = #0 (Expanded file = 2)
1495a2a7f2SVedant Kumar // CHECK-NEXT:   File 2, 7:20 -> 7:46 = #0
1595a2a7f2SVedant Kumar // CHECK-NEXT:   Expansion,File 2, 7:33 -> 7:44 = #0 (Expanded file = 3)
1695a2a7f2SVedant Kumar // CHECK-NEXT:   File 3, 13:26 -> 13:34 = #0
1795a2a7f2SVedant Kumar // CHECK-NEXT:   Expansion,File 3, 13:26 -> 13:33 = #0 (Expanded file = 4)
1895a2a7f2SVedant Kumar // CHECK-NEXT:   File 4, 3:17 -> 3:18 = #0
19