Home | History | Annotate | Download | only in CoverageMapping
      1 // RUN: %clang_cc1 -fprofile-instrument=clang -fcoverage-mapping -dump-coverage-mapping -emit-llvm-only %s | FileCheck %s
      2 
      3 #define WHILE while (0) {}
      4 
      5 // CHECK: counters_in_macro_following_unreachable
      6 void counters_in_macro_following_unreachable() {
      7   // CHECK-NEXT: File 0, [[@LINE-1]]:48 -> {{[0-9]+}}:2 = #0
      8   return;
      9   // CHECK-NEXT: Expansion,File 0, [[@LINE+2]]:3 -> [[@LINE+2]]:8 = 0
     10   // CHECK-NEXT: File 0, [[@LINE+1]]:8 -> [[@LINE+2]]:2 = 0
     11   WHILE
     12 }
     13 // CHECK-NEXT: File 1, 3:15 -> 3:27 = 0
     14 // CHECK-NEXT: File 1, 3:22 -> 3:23 = #1
     15 // CHECK-NEXT: File 1, 3:25 -> 3:27 = #1
     16