Home | History | Annotate | Download | only in CoverageMapping
      1 // RUN: %clang_cc1 -fprofile-instrument=clang -fcoverage-mapping -dump-coverage-mapping -emit-llvm-only -main-file-name include-macros.c %s | FileCheck %s
      2 
      3 #include "Inputs/macros.h"
      4 
      5 void f1() {
      6   M2("a", "b");
      7 }
      8 
      9 // CHECK-LABEL: f1:
     10 // CHECK-NEXT:   File 0, 5:11 -> 7:2 = #0
     11 // CHECK-NEXT:   Expansion,File 0, 6:3 -> 6:5 = #0 (Expanded file = 1)
     12 // CHECK-NEXT:   File 1, 13:20 -> 13:50 = #0
     13 // CHECK-NEXT:   Expansion,File 1, 13:20 -> 13:22 = #0 (Expanded file = 2)
     14 // CHECK-NEXT:   File 2, 7:20 -> 7:46 = #0
     15 // CHECK-NEXT:   Expansion,File 2, 7:33 -> 7:44 = #0 (Expanded file = 3)
     16 // CHECK-NEXT:   File 3, 13:26 -> 13:34 = #0
     17 // CHECK-NEXT:   Expansion,File 3, 13:26 -> 13:33 = #0 (Expanded file = 4)
     18 // CHECK-NEXT:   File 4, 3:17 -> 3:18 = #0
     19