Skip to content

Commit 8e14cc5

Browse files
author
Davide Italiano
committed
[test/DebugInfo] Add a missing REQUIRES and availability macro.
1 parent 15dd4fe commit 8e14cc5

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

test/DebugInfo/mandatory-inlining-ownership.swift

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,20 @@
1+
// REQUIRES: objc_interop
2+
13
// RUN: %target-swift-frontend -emit-sil %s -Onone -Xllvm \
24
// RUN: -sil-print-after=mandatory-inlining \
35
// RUN: -enable-ownership-stripping-after-serialization \
46
// RUN: -Xllvm -sil-print-debuginfo -o /dev/null 2>&1 | %FileCheck %s
57

6-
// CHECK: begin_borrow {{.*}} : $OSLog, loc {{.*}}, scope 3
7-
// CHECK: tuple (), loc {{.*}}, scope 3
8-
// CHECK: end_borrow %3 : $OSLog, loc {{.*}}, scope 3
8+
// CHECK: begin_borrow {{.*}} : $OSLog, loc {{.*}}, scope 5
9+
// CHECK: tuple (), loc {{.*}}, scope 5
10+
// CHECK: end_borrow %9 : $OSLog, loc {{.*}}, scope 5
911

1012
import os
1113

1214
func bar() {
13-
foo(OSLog.default)
15+
if #available(macOS 10.14, iOS 12.0, watchOS 5.0, tvOS 12.0, *) {
16+
foo(OSLog.default)
17+
}
1418
}
1519

1620
@_transparent

0 commit comments

Comments
 (0)