1 // RUN: %clang_cc1 -mllvm -emptyline-comment-coverage=false -fprofile-instrument=clang -fcoverage-mapping -dump-coverage-mapping -emit-llvm-only %s | FileCheck %s
6 // CHECK: {{_Z2f0v|\?f0@@YAXXZ}}:
7 // CHECK-NEXT: File 0, [[@LINE+1]]:18 -> [[@LINE+1]]:20 = 0
10 // CHECK: {{_Z2f1v|\?f1@@YAXXZ}}:
11 // CHECK-NEXT: File 0, [[@LINE+1]]:18 -> [[@LINE+1]]:31 = 0
12 inline void f1() START_SCOPE
}
14 // CHECK: {{_Z2f2v|\?f2@@YAXXZ}}:
15 // CHECK-NEXT: File 0, [[@LINE+1]]:18 -> [[@LINE+1]]:29 = 0
16 inline void f2() { END_SCOPE
18 // CHECK: {{_Z2f3v|\?f3@@YAXXZ}}:
19 // CHECK-NEXT: File 0, [[@LINE+1]]:18 -> [[@LINE+1]]:39 = 0
20 inline void f3() START_SCOPE END_SCOPE
22 // CHECK: {{_Z2f4v|\?f4@@YAXXZ}}:
23 // CHECK-NEXT: File 0, [[@LINE+2]]:10 -> [[@LINE+3]]:2 = 0
25 #include "Inputs/starts_a_scope_only"
28 // CHECK: {{_Z2f5v|\?f5@@YAXXZ}}:
29 // CHECK-NEXT: File 0, [[@LINE+1]]:18 -> [[@LINE+2]]:36 = 0
31 #include "Inputs/ends_a_scope_only"
33 // CHECK: {{_Z2f6v|\?f6@@YAXXZ}}:
34 // CHECK-NEXT: File 0, [[@LINE+2]]:10 -> [[@LINE+3]]:36 = 0
36 #include "Inputs/starts_a_scope_only"
37 #include "Inputs/ends_a_scope_only"