mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
These appear to fail when run for other configurations, so restrict them for now until we can figure out what is going wrong.
15 lines
656 B
Swift
15 lines
656 B
Swift
// REQUIRES: asan_runtime
|
|
// RUN: %swiftc_driver -driver-print-jobs -sanitize=address -sanitize-address-use-odr-indicator %s 2>&1 | %FileCheck %s
|
|
|
|
// rdar://83458140
|
|
// REQUIRES: OS=macosx
|
|
|
|
// CHECK: swift
|
|
// CHECK-DAG: -sanitize=address
|
|
// CHECK-DAG: -sanitize-address-use-odr-indicator
|
|
|
|
// Missing `-sanitize=address` causes warning to be emitted
|
|
// RUN: %swiftc_driver -sanitize-address-use-odr-indicator \
|
|
// RUN: %s -o %t 2>&1 | %FileCheck -check-prefix=CHECK-MISSING-ARG %s
|
|
// CHECK-MISSING-ARG: warning: option '-sanitize-address-use-odr-indicator' has no effect when 'address' sanitizer is disabled. Use -sanitize=address to enable the sanitizer
|