Skip to content

Commit 0f0ad8c

Browse files
committed
Attempt to fix attr/require_explicit_availability test on non-mac
There was an unepxected warning because of mixing iOS and mac flags.
1 parent 8ea6500 commit 0f0ad8c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/attr/require_explicit_availability.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// RUN: %target-swift-frontend -typecheck -parse-stdlib -target x86_64-apple-macosx10.10 -verify -require-explicit-availability -require-explicit-availability-target "macOS 10.10" %s
2-
// RUN: %target-swift-frontend -typecheck -parse-stdlib -target x86_64-apple-macosx10.10 -warnings-as-errors %s
1+
// RUN: %swift -typecheck -parse-stdlib -target x86_64-apple-macosx10.10 -verify -require-explicit-availability -require-explicit-availability-target "macOS 10.10" %s
2+
// RUN: %swift -typecheck -parse-stdlib -target x86_64-apple-macosx10.10 -warnings-as-errors %s
33

44
public struct S { // expected-warning {{public declarations should have an availability attribute with -require-explicit-availability}}
55
public func method() { }

0 commit comments

Comments
 (0)