1 // RUN: %clang_cc1 -fprofile-instrument=clang -fcoverage-mapping -dump-coverage-mapping -emit-llvm-only %s | FileCheck %s 2 3 #define START_SCOPE { 4 #define END_SCOPE } 5 6 // CHECK: {{_Z2f0v|\?f0@@YAXXZ}}: 7 // CHECK-NEXT: File 0, [[@LINE+1]]:18 -> [[@LINE+1]]:20 = 0 8 inline void f0() {} 9 10 // CHECK: {{_Z2f1v|\?f1@@YAXXZ}}: 11 // CHECK-NEXT: File 0, [[@LINE+1]]:18 -> [[@LINE+1]]:31 = 0 12 inline void f1() START_SCOPE } 13 14 // CHECK: {{_Z2f2v|\?f2@@YAXXZ}}: 15 // CHECK-NEXT: File 0, [[@LINE+1]]:18 -> [[@LINE+1]]:29 = 0 16 inline void f2() { END_SCOPE 17 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 21 22 // CHECK: {{_Z2f4v|\?f4@@YAXXZ}}: 23 // CHECK-NEXT: File 0, [[@LINE+2]]:10 -> [[@LINE+3]]:2 = 0 24 inline void f4() 25 #include "Inputs/starts_a_scope_only" 26 } 27 28 // CHECK: {{_Z2f5v|\?f5@@YAXXZ}}: 29 // CHECK-NEXT: File 0, [[@LINE+1]]:18 -> [[@LINE+2]]:36 = 0 30 inline void f5() { 31 #include "Inputs/ends_a_scope_only" 32 33 // CHECK: {{_Z2f6v|\?f6@@YAXXZ}}: 34 // CHECK-NEXT: File 0, [[@LINE+2]]:10 -> [[@LINE+3]]:36 = 0 35 inline void f6() 36 #include "Inputs/starts_a_scope_only" 37 #include "Inputs/ends_a_scope_only" 38