You've already forked linux-packaging-mono
Imported Upstream version 5.18.0.205
Former-commit-id: 7f59f7e792705db773f1caecdaa823092f4e2927
This commit is contained in:
parent
5cd5df71cc
commit
8e12397d70
19
external/llvm/test/tools/sancov/Inputs/test.cpp
vendored
Normal file
19
external/llvm/test/tools/sancov/Inputs/test.cpp
vendored
Normal file
@ -0,0 +1,19 @@
|
||||
// compile & generate coverage data using:
|
||||
// clang++ -g -o test-linux_x86_64 -fsanitize=address -fsanitize-coverage=bb test.cpp ../Inputs/foo.cpp
|
||||
// ASAN_OPTIONS="coverage=1" ./test-linux_x86_64 && mv test-linux_x86_64.??*.sancov test-linux_x86_64.0.sancov
|
||||
// ASAN_OPTIONS="coverage=1" ./test-linux_x86_64 1 && mv test-linux_x86_64.??*.sancov test-linux_x86_64.1.sancov
|
||||
|
||||
#include <stdio.h>
|
||||
#include <string>
|
||||
|
||||
void foo();
|
||||
|
||||
__attribute__((noinline))
|
||||
std::string bar(std::string str) { printf("bar\n"); return str; }
|
||||
|
||||
int main(int argc, char **argv) {
|
||||
if (argc == 2)
|
||||
foo();
|
||||
bar("str");
|
||||
printf("main\n");
|
||||
}
|
Reference in New Issue
Block a user