Skip to content

Commit d57e0cc

Browse files
committed
Merge remote-tracking branch 'origin/master' into master-next
2 parents bcedaa9 + 379b7ad commit d57e0cc

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

test/IRGen/opaque_result_type_access_path.swift

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// RUN: %empty-directory(%t)
2-
// RUN: %target-build-swift -Xfrontend -disable-availability-checking -module-name=test %s -o %t/a.out
2+
// RUN: %target-build-swift -module-name=test %s -o %t/a.out
33
// RUN: %target-run %t/a.out | %FileCheck %s
44
// REQUIRES: executable_test
55
// REQUIRES: CPU=arm64 || CPU=x86_64
@@ -31,14 +31,19 @@ extension X : P where T : P {
3131
}
3232
}
3333

34+
@available(macOS 9999, iOS 9999, tvOS 9999, watchOS 9999, *)
3435
func bar() -> some P {
3536
return 27
3637
}
3738

39+
@available(macOS 9999, iOS 9999, tvOS 9999, watchOS 9999, *)
3840
func foo() -> some P {
3941
return X(bar())
4042
}
4143

4244
// CHECK: 27
45+
if #available(macOS 9999, iOS 9999, tvOS 9999, watchOS 9999, *) {
4346
print(foo().get())
44-
47+
} else {
48+
print(27)
49+
}

0 commit comments

Comments
 (0)