[ELF] Make SyntheticSection parameter order match InputSection
[llvm-project.git] / clang / test / CoverageMapping / unreachable-macro.c
blob7956c973f6ce802f04690fb8f8ff150ca114c5f9
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 WHILE while (0) {}
5 // CHECK: counters_in_macro_following_unreachable
6 void counters_in_macro_following_unreachable(void) {
7 // CHECK-NEXT: File 0, [[@LINE-1]]:52 -> {{[0-9]+}}:2 = #0
8 return;
9 // CHECK-NEXT: Gap,File 0, [[@LINE-1]]:10 -> [[@LINE+3]]:3 = 0
10 // CHECK-NEXT: Expansion,File 0, [[@LINE+2]]:3 -> [[@LINE+2]]:8 = 0
11 // CHECK-NEXT: File 0, [[@LINE+1]]:8 -> [[@LINE+2]]:2 = 0
12 WHILE
14 // CHECK-NEXT: File 1, 3:15 -> 3:27 = 0
15 // CHECK-NEXT: File 1, 3:22 -> 3:23 = #1
16 // CHECK-NEXT: Branch,File 1, 3:22 -> 3:23 = 0, 0
17 // CHECK-NEXT: File 1, 3:25 -> 3:27 = #1