forked from OSchip/llvm-project
21 lines
811 B
C
21 lines
811 B
C
// Test flags inserted by -fsanitize=fuzzer.
|
|
|
|
// RUN: %clang -fsanitize=fuzzer %s -target x86_64-apple-darwin14 -### 2>&1 | FileCheck --check-prefixes=CHECK-FUZZER-LIB,CHECK-COVERAGE-FLAGS %s
|
|
//
|
|
// CHECK-FUZZER-LIB: libLLVMFuzzer.a
|
|
// CHECK-COVERAGE: -fsanitize-coverage-trace-pc-guard
|
|
// CHECK-COVERAGE-SAME: -fsanitize-coverage-indirect-calls
|
|
// CHECK-COVERAGE-SAME: -fsanitize-coverage-trace-cmp
|
|
|
|
// RUN: %clang -fsanitize=fuzzer -target i386-unknown-linux -stdlib=platform %s -### 2>&1 | FileCheck --check-prefixes=CHECK-LIBCXX-LINUX %s
|
|
//
|
|
// CHECK-LIBCXX-LINUX: -lstdc++
|
|
|
|
// RUN: %clang -target x86_64-apple-darwin14 -fsanitize=fuzzer %s -### 2>&1 | FileCheck --check-prefixes=CHECK-LIBCXX-DARWIN %s
|
|
//
|
|
// CHECK-LIBCXX-DARWIN: -lc++
|
|
|
|
int LLVMFuzzerTestOneInput(const char *Data, long Size) {
|
|
return 0;
|
|
}
|