mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-03-02 15:26:29 +00:00

Fix a bug if {Prev, Next}TokLoc is in different file from skipped regions' {start, end}Loc Differential Revision: https://reviews.llvm.org/D86116
14 lines
369 B
C++
14 lines
369 B
C++
// RUN: %clang_cc1 -fprofile-instrument=clang -fcoverage-mapping -dump-coverage-mapping -emit-llvm-only %s | FileCheck %s
|
|
|
|
int f() {
|
|
int x = 0;
|
|
#include "Inputs/comment.h" /*
|
|
*/
|
|
return x;
|
|
}
|
|
|
|
// CHECK: File 0, 3:9 -> 8:2 = #0
|
|
// CHECK-NEXT: Expansion,File 0, 5:10 -> 5:28 = #0
|
|
// CHECK-NEXT: Skipped,File 0, 6:1 -> 6:7 = 0
|
|
// CHECK-NEXT: File 1, 1:1 -> 7:1 = #0
|