1 // RUN: llvm-cov show %S/Inputs/showExpansions.covmapping -instr-profile %S/Inputs/showExpansions.profdata -dump -show-expansions -path-equivalence="/Users/bogner/code/llvm/test/tools,%S/.." %s 2>&1 | FileCheck %s
3 #define DO_SOMETHING_ELSE() \
6 #define ANOTHER_THING() \
12 #define DO_SOMETHING(x) \
15 DO_SOMETHING_ELSE(); \
19 // CHECK-DAG: Expansion at line [[@LINE-4]], 7 -> 24
20 // CHECK-DAG: Expansion at line [[@LINE-3]], 7 -> 20
22 int main(int argc
, const char *argv
[]) {
23 for (int i
= 0; i
< 100; ++i
)
24 DO_SOMETHING(i
); // CHECK-DAG: Expansion at line [[@LINE]], 5 -> 17
27 // RUN: llvm-cov export %S/Inputs/showExpansions.covmapping -instr-profile %S/Inputs/showExpansions.profdata 2>&1 | FileCheck %S/Inputs/showExpansions.json
29 // RUN: llvm-cov export %S/Inputs/showExpansions.covmapping -instr-profile %S/Inputs/showExpansions.profdata -skip-expansions 2>&1 | FileCheck %s -check-prefix=SKIP-EXPANSIONS
30 // SKIP-EXPANSIONS-NOT: "expansions"