mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
12 lines
437 B
Swift
12 lines
437 B
Swift
// RUN: %target-swiftc_driver %s -g -sanitize=scudo -o %t_scudo-binary
|
|
// RUN: not --crash %target-run %t_scudo-binary 2>&1 | %FileCheck %s
|
|
// REQUIRES: executable_test
|
|
// REQUIRES: OS=linux-gnu
|
|
// REQUIRES: scudo_runtime
|
|
|
|
let allocated = UnsafeMutableRawPointer.allocate(byteCount: 128, alignment: 1)
|
|
allocated.deallocate()
|
|
allocated.deallocate()
|
|
|
|
// CHECK: {{ERROR: invalid chunk state|\*\*\* GWP-ASan detected a memory error \*\*\*}}
|