[OpenACC] Enable 'attach' clause for combined constructs
[llvm-project.git] / clang / test / CoverageMapping / unused_function.cpp
blob0dcd95f5343fb1ca0f361e1c6b15f3fefa605e48
1 // RUN: %clang_cc1 -mllvm -emptyline-comment-coverage=false -fprofile-instrument=clang -fcoverage-mapping -dump-coverage-mapping -emit-llvm-only %s | FileCheck %s
3 #define START_SCOPE {
4 #define END_SCOPE }
6 // CHECK: {{_Z2f0v|\?f0@@YAXXZ}}:
7 // CHECK-NEXT: File 0, [[@LINE+1]]:18 -> [[@LINE+1]]:20 = 0
8 inline void f0() {}
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
24 inline void f4()
25 #include "Inputs/starts_a_scope_only"
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"
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"