2020-07-23 10:04:59 +08:00
|
|
|
// RUN: %strip_comments > %t.stripped.c
|
|
|
|
// RUN: %clang_cc1 -fprofile-instrument=clang -fcoverage-mapping -dump-coverage-mapping -emit-llvm-only %t.stripped.c | FileCheck %s
|
2015-03-25 12:13:49 +08:00
|
|
|
|
|
|
|
#define x1 "" // ...
|
|
|
|
#define x2 return 0
|
|
|
|
// CHECK: main
|
|
|
|
int main() { // CHECK-NEXT: File 0, [[@LINE]]:12 -> [[@LINE+3]]:2 = #0
|
|
|
|
x1; // CHECK-NEXT: Expansion,File 0, [[@LINE]]:3 -> [[@LINE]]:5 = #0
|
|
|
|
x2; // CHECK-NEXT: Expansion,File 0, [[@LINE]]:3 -> [[@LINE]]:5 = #0
|
|
|
|
}
|
2020-07-23 10:04:59 +08:00
|
|
|
// CHECK-NEXT: File 1, 4:12 -> 4:14 = #0
|
|
|
|
// CHECK-NEXT: File 2, 5:12 -> 5:20 = #0
|