2020-09-03 05:50:32 +08:00
|
|
|
// RUN: %clang_cc1 -mllvm -emptyline-comment-coverage=false -fprofile-instrument=clang -fcoverage-mapping -dump-coverage-mapping -emit-llvm-only %s | FileCheck %s
|
|
|
|
|
2015-05-02 03:23:34 +08:00
|
|
|
#define WHILE while (0) {}
|
|
|
|
|
|
|
|
// CHECK: counters_in_macro_following_unreachable
|
2022-02-09 22:10:10 +08:00
|
|
|
void counters_in_macro_following_unreachable(void) {
|
|
|
|
// CHECK-NEXT: File 0, [[@LINE-1]]:52 -> {{[0-9]+}}:2 = #0
|
2015-05-02 03:23:34 +08:00
|
|
|
return;
|
2021-03-05 03:50:31 +08:00
|
|
|
// CHECK-NEXT: Gap,File 0, [[@LINE-1]]:10 -> [[@LINE+3]]:3 = 0
|
2015-05-02 03:23:34 +08:00
|
|
|
// CHECK-NEXT: Expansion,File 0, [[@LINE+2]]:3 -> [[@LINE+2]]:8 = 0
|
|
|
|
// CHECK-NEXT: File 0, [[@LINE+1]]:8 -> [[@LINE+2]]:2 = 0
|
|
|
|
WHILE
|
|
|
|
}
|
|
|
|
// CHECK-NEXT: File 1, 3:15 -> 3:27 = 0
|
|
|
|
// CHECK-NEXT: File 1, 3:22 -> 3:23 = #1
|
2020-12-29 01:20:48 +08:00
|
|
|
// CHECK-NEXT: Branch,File 1, 3:22 -> 3:23 = 0, 0
|
2015-05-02 03:23:34 +08:00
|
|
|
// CHECK-NEXT: File 1, 3:25 -> 3:27 = #1
|