mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Unified builds of compiler-rt together with LLVM failed for the Android SDKs. It got too complicated to redirect the way LLVM would configure the nested build-trees. Standalone builds slightly increase build time, but they turned out much simpler and we end up with less duplication of definitions.
19 lines
611 B
Swift
19 lines
611 B
Swift
// RUN: %target-build-swift -sanitize=address -sanitize-coverage=edge %s -o %t_binary
|
|
// RUN: %empty-directory(%t_coverage_dir)
|
|
// RUN: %env-ASAN_OPTIONS=abort_on_error=0,coverage=1,coverage_dir=%t_coverage_dir %target-run %t_binary
|
|
// check the coverage file exists
|
|
// RUN: ls %t_coverage_dir/sanitizer_coverage.swift.tmp_binary.*.sancov > /dev/null
|
|
|
|
// REQUIRES: executable_test
|
|
// REQUIRES: asan_runtime
|
|
// For now restrict this test to platforms where we know this test will pass
|
|
// REQUIRES: CPU=x86_64
|
|
// UNSUPPORTED: remote_run
|
|
// XFAIL: OS=windows-msvc
|
|
|
|
func sayHello() {
|
|
print("Hello")
|
|
}
|
|
|
|
sayHello()
|