Skip to content

Commit 0a02081

Browse files
committed
PrintAsObjC test is broken. Add comments.
1 parent 91b406a commit 0a02081

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

test/PrintAsObjC/extensions.swift

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,13 @@
77
// RUN: %FileCheck --check-prefix=NEGATIVE %s < %t/extensions.h
88
// RUN: %check-in-clang %t/extensions.h
99

10+
// This test generates invalid SIL. It will cause a compiler assert in
11+
// both -Onone and -O builds:
12+
// Error! Found a leaked owned value that was never consumed.
13+
// -disable-sil-ownership-verifier is a temporary workaround.
14+
// rdar://64375208 (Wrong lowering of PrintAsObjC code. Result is
15+
// unowned instead of autoreleased)
16+
1017
// REQUIRES: objc_interop
1118

1219
import Foundation

0 commit comments

Comments
 (0)