mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
We started building iOS sanitizers when switching to `LLVM_ENABLE_RUNTIMES` to build compiler-rt, and turns out they currently provide only the arm64 slice. Addresses rdar://151782340
11 lines
201 B
Swift
11 lines
201 B
Swift
// RUN: %target-build-swift %s -sanitize=thread
|
|
|
|
// REQUIRES: tsan_runtime
|
|
// UNSUPPORTED: OS=ios && CPU=arm64e
|
|
|
|
class C {}
|
|
func passC(_ b: consuming C) {
|
|
mutateC(&b)
|
|
}
|
|
func mutateC(_ b: inout C) {}
|