CodeQL / Analyze (actions) (push) Canceled after 0s
CodeQL / Analyze (python) (push) Canceled after 0s
pre-commit / pre-commit (push) Canceled after 0s
Multi-Arch CI / setup (push) Canceled after 0s
Publish build_manylinux_x86_64 images / publish_build_manylinux_x86_64 (push) Canceled after 0s
Setup (Multi-Arch) / setup (push) Canceled after 0s
Multi-Arch CI / Linux::${{ fromJSON(needs.setup.outputs.linux_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubi10 image / publish_no_rocm_image_ubi10 (push) Canceled after 0s
Multi-Arch CI / Windows::${{ fromJSON(needs.setup.outputs.windows_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Multi-Arch CI / Manifest Diff (push) Canceled after 0s
TheRock Manifest Diff Report / Generate Manifest Diff Report (push) Canceled after 0s
Multi-Arch CI / CI Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_ocl_rt images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_rocgdb images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Unit Tests / Unit Tests :: ubuntu-24.04 (push) Canceled after 0s
Unit Tests / Unit Tests :: windows-2022 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_media (push) Canceled after 0s
Unit Tests / Unit Tests Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_openmpi (push) Canceled after 0s
59 lines
2.9 KiB
C
59 lines
2.9 KiB
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 %s
|
|
//
|
|
// CHECK-COVERAGE: -fsanitize-coverage-indirect-calls
|
|
// CHECK-COVERAGE-SAME: -fsanitize-coverage-trace-cmp
|
|
// CHECK-COVERAGE-SAME: -fsanitize-coverage-inline-8bit-counters
|
|
// CHECK-COVERAGE-SAME: -fsanitize-coverage-pc-table
|
|
// CHECK-FUZZER-LIB: libclang_rt.fuzzer
|
|
|
|
// 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++
|
|
|
|
|
|
// Check that we don't link in libFuzzer.a when producing a shared object.
|
|
// RUN: %clang --target=x86_64-linux-gnu -fsanitize=fuzzer %s -shared -### 2>&1 | FileCheck --check-prefixes=CHECK-NOLIB-SO %s
|
|
// CHECK-NOLIB-SO-NOT: libclang_rt.libfuzzer
|
|
|
|
// Check that we don't link in libFuzzer when compiling with -fsanitize=fuzzer-no-link.
|
|
// RUN: %clang -fsanitize=fuzzer-no-link %s -target x86_64-apple-darwin14 -### 2>&1 | FileCheck --check-prefixes=CHECK-NOLIB,CHECK-COV %s
|
|
// CHECK-NOLIB-NOT: libclang_rt.libfuzzer
|
|
// CHECK-COV: -fsanitize-coverage-inline-8bit-counters
|
|
|
|
// Check that we respect whether the standard library should be linked.
|
|
// statically.
|
|
//
|
|
// RUN: %clang -fsanitize=fuzzer --target=i386-unknown-linux -stdlib=libstdc++ %s -### 2>&1 | FileCheck --check-prefixes=CHECK-LIBSTDCXX-DYNAMIC %s
|
|
// CHECK-LIBSTDCXX-DYNAMIC-NOT: -Bstatic
|
|
// CHECK-LIBSTDCXX-DYNAMIC: -lstdc++
|
|
//
|
|
// RUN: %clang -fsanitize=fuzzer --target=i386-unknown-linux -stdlib=libstdc++ -static-libstdc++ %s -### 2>&1 | FileCheck --check-prefixes=CHECK-LIBSTDCXX-STATIC %s
|
|
// CHECK-LIBSTDCXX-STATIC: "-Bstatic" "-lstdc++"
|
|
//
|
|
// RUN: %clang -fsanitize=fuzzer --target=i386-unknown-linux -stdlib=libc++ %s -### 2>&1 | FileCheck --check-prefixes=CHECK-LIBCXX-DYNAMIC %s
|
|
// CHECK-LIBCXX-DYNAMIC-NOT: -Bstatic
|
|
// CHECK-LIBCXX-DYNAMIC: -lc++
|
|
//
|
|
// RUN: %clang -fsanitize=fuzzer --target=i386-unknown-linux -stdlib=libc++ -static-libstdc++ %s -### 2>&1 | FileCheck --check-prefixes=CHECK-LIBCXX-STATIC %s
|
|
// CHECK-LIBCXX-STATIC: "-Bstatic" "-lc++"
|
|
|
|
// Check that we add required dependencies when linking the sanitizer runtime
|
|
// (e.g. libFuzzer uses sqrt in libm).
|
|
//
|
|
// RUN: %clang -fsanitize=fuzzer -shared-libsan --target=x86_64-linux-gnu %s -### 2>&1 | FileCheck --check-prefixes=CHECK-SHARED-LIBSAN %s
|
|
// CHECK-SHARED-LIBSAN: -lm
|
|
// RUN: %clang -fsanitize=fuzzer -static-libsan --target=x86_64-linux-gnu %s -### 2>&1 | FileCheck --check-prefixes=CHECK-STATIC-LIBSAN %s
|
|
// CHECK-STATIC-LIBSAN: -lm
|
|
// RUN: %clang -fsanitize=fuzzer --target=x86_64-linux-gnu %s -### 2>&1 | FileCheck --check-prefixes=CHECK-DEFAULT-LIBSAN %s
|
|
// CHECK-DEFAULT-LIBSAN: -lm
|
|
|
|
int LLVMFuzzerTestOneInput(const char *Data, long Size) {
|
|
return 0;
|
|
}
|