Imported Upstream version 5.18.0.246

Former-commit-id: 0c7ce5b1a7851e13f22acfd379b7f9fb304e4833
This commit is contained in:
Xamarin Public Jenkins (auto-signing)
2019-01-23 08:21:40 +00:00
parent a7724cd563
commit 279aa8f685
28482 changed files with 3866972 additions and 44 deletions

View File

@@ -0,0 +1,21 @@
These inputs were pre-generated to allow for easier testing of llvm-cov.
The files used to test the gcov compatible code coverage tool were generated
using the following method:
test.gcno and test.gcda were create by running clang:
clang++ -g -ftest-coverage -fprofile-arcs test.cpp
test.cpp.gcov was created by running gcov 4.2.1:
gcov test.cpp
The 'covmapping' files that are used to test llvm-cov contain raw sections
with the coverage mapping data generated by the compiler and linker. They are
created by running clang and llvm-cov:
clang++ -fprofile-instr-generate -fcoverage-mapping -o test test.cpp
llvm-cov convert-for-testing -o test.covmapping test
The 'profdata' files were generated by running an instrumented version of the
program and merging the raw profile data using llvm-profdata.
./test
llvm-profdata merge -o test.profdata default.profraw

View File

@@ -0,0 +1,39 @@
// Metadata section
// CHECK: {"version":"{{[0-9]\.[0-9]\.[0-9]}}","type":"llvm.coverage.json.export","data":[
// Open Export
// CHECK-SAME: {"files":[
// File Object
// CHECK-SAME: {"filename":"{{[^"]+}}binary-formats.c",
// CHECK-SAME: "segments":[
// CHECK-SAME: [4,40,100,1,1],[4,42,0,0,0]],
// CHECK-SAME: "expansions":[],
// Verify the Summary Section for the first file
// CHECK-SAME: "summary":{
// CHECK-SAME: "lines":{"count":1,"covered":1,"percent":100},
// CHECK-SAME: "functions":{"count":1,"covered":1,"percent":100},
// CHECK-SAME: "regions":{"count":1,"covered":1,"notcovered":0,"percent":100}}}
// Close Files Array
// CHECK-SAME: ],
// Functions List
// CHECK-SAME: "functions":[
// CHECK-SAME: {"name":"main","count":100,"regions":[
// CHECK-SAME: [4,40,4,42,100,0,0,0]
// CHECK-SAME: ],
// CHECK-SAME: "filenames":["{{[^"]+}}binary-formats.c"]
// CHECK-SAME: }],
// Full Export Summary
// CHECK-SAME: "totals":{
// CHECK-SAME: "lines":{"count":1,"covered":1,"percent":100},
// CHECK-SAME: "functions":{"count":1,"covered":1,"percent":100},
// CHECK-SAME: "instantiations":{"count":1,"covered":1,"percent":100},
// CHECK-SAME: "regions":{"count":1,"covered":1,"notcovered":0,"percent":100}}
// Close the export object, data array, and root object
// CHECK-SAME: }]}

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -0,0 +1,4 @@
main
0x0
1
100

View File

@@ -0,0 +1 @@
319322d747f282483d206898392860a59af25787

Binary file not shown.

View File

@@ -0,0 +1 @@
9c6835cdff1ba9537f01cc6a7b2ddfc09523b6cd

View File

@@ -0,0 +1,8 @@
main
# Func Hash:
0
# Num Counters:
1
# Counter Values:
1

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -0,0 +1,32 @@
main
# Func Hash:
0
# Num Counters:
1
# Counter Values:
1
_Z2f1v
# Func Hash:
0
# Num Counters:
1
# Counter Values:
1
_Z2f2v
# Func Hash:
0
# Num Counters:
1
# Counter Values:
0
_Z2f3v
# Func Hash:
0
# Num Counters:
1
# Counter Values:
0

View File

@@ -0,0 +1,8 @@
int f1() {
return 1;
}
int main() {
f1();
return 0;
}

View File

@@ -0,0 +1,8 @@
int f2() {
return 2;
}
int f3() {
return 3;
}

Binary file not shown.

Some files were not shown because too many files have changed in this diff Show More