Skip to content

Commit 719697d

Browse files
committed
[embedded] Rename and explain test/embedded/ouroboros-bug.swift
1 parent 6900efe commit 719697d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/embedded/arc-crash.swift renamed to test/embedded/ouroboros-bug.swift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
// Regression test for a "Ouroboros Bug": The ARC optimizer doesn't like the
2+
// presense of a direct call to swift_retain and swift_release in any Swift
3+
// code, but in the embedded Swift's runtime that's somewhat reasonable thing
4+
// to do (but is to be avoided because of this).
5+
16
// RUN: %target-swift-frontend -target armv7-apple-none-macho -assert-config Debug -Osize -Xcc -D__MACH__ -emit-ir %s -enable-experimental-feature Embedded | %FileCheck %s
27
// RUN: %target-swift-frontend -target arm64-apple-none-macho -assert-config Debug -Osize -Xcc -D__MACH__ -Xcc -D__arm64__ -Xcc -D__APPLE__ -emit-ir %s -enable-experimental-feature Embedded | %FileCheck %s
38

0 commit comments

Comments
 (0)