[ELF] Make SyntheticSection parameter order match InputSection
[llvm-project.git] / clang / test / CoverageMapping / include-macros.c
blob8adb34bd22876236fe1d4b87414f05f7993b311b
1 // RUN: %clang_cc1 -mllvm -emptyline-comment-coverage=false -fprofile-instrument=clang -fcoverage-mapping -dump-coverage-mapping -emit-llvm-only -main-file-name include-macros.c %s | FileCheck %s
3 #include "Inputs/macros.h"
5 void f1(void) {
6 M2("a", "b");
9 // CHECK-LABEL: f1:
10 // CHECK-NEXT: File 0, 5:15 -> 7:2 = #0
11 // CHECK-NEXT: Expansion,File 0, 6:3 -> 6:5 = #0 (Expanded file = 1)
12 // CHECK-NEXT: File 1, 13:20 -> 13:50 = #0
13 // CHECK-NEXT: Expansion,File 1, 13:20 -> 13:22 = #0 (Expanded file = 2)
14 // CHECK-NEXT: File 2, 7:20 -> 7:46 = #0
15 // CHECK-NEXT: Expansion,File 2, 7:33 -> 7:44 = #0 (Expanded file = 3)
16 // CHECK-NEXT: File 3, 13:26 -> 13:34 = #0
17 // CHECK-NEXT: Expansion,File 3, 13:26 -> 13:33 = #0 (Expanded file = 4)
18 // CHECK-NEXT: File 4, 3:17 -> 3:18 = #0