[OpenACC] Enable 'attach' clause for combined constructs
[llvm-project.git] / clang / test / CoverageMapping / macroparams2.c
blob7873b6ac12a9ab6cfc22c3522a8e7b606bb0e790
1 // RUN: %clang_cc1 -mllvm -emptyline-comment-coverage=false -fprofile-instrument=clang -fcoverage-mapping -dump-coverage-mapping -emit-llvm-only -main-file-name macroparams2.c %s | FileCheck %s
3 #define MACRO(REFS, CALLS) (4 * (CALLS) < (REFS))
5 struct S {
6 int i, j;
7 };
9 // CHECK: File 0, [[@LINE+1]]:16 -> [[@LINE+11]]:2 = #0
10 int main(void) {
11 struct S arr[32] = { 0 };
12 int n = 0;
13 // CHECK-NEXT: Expansion,File 0, [[@LINE+3]]:7 -> [[@LINE+3]]:12 = #0
14 // CHECK-NEXT: Gap,File 0, [[@LINE+2]]:33 -> [[@LINE+2]]:34 = #1
15 // CHECK-NEXT: File 0, [[@LINE+1]]:34 -> [[@LINE+3]]:4 = #1
16 if (MACRO(arr[n].j, arr[n].i)) {
17 n = 1;
19 return n;
22 // CHECK: File 1, 3:29 -> 3:51 = #0