Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions Tests/SwiftDriverTests/SwiftDriverTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2782,6 +2782,9 @@ final class SwiftDriverTests: XCTestCase {
}

func testSanitizeStableAbi() throws {
#if !(os(macOS) || os(iOS) || os(tvOS) || os(watchOS))
throw XCTSkip("-sanitize-stable-abi is only implemented on Darwin")
#else
var driver = try Driver(args: ["swiftc", "-sanitize=address", "-sanitize-stable-abi", "Test.swift"])
guard driver.isFrontendArgSupported(.sanitizeStableAbiEQ) else {
return
Expand All @@ -2803,6 +2806,7 @@ final class SwiftDriverTests: XCTestCase {
$1.expect(.warning("option '-sanitize-stable-abi' has no effect when 'address' sanitizer is disabled. Use -sanitize=address to enable the sanitizer"))
}
}
#endif
}

func testADDITIONAL_SWIFT_DRIVER_FLAGS() throws {
Expand Down