Skip to content

Commit 4586f1a

Browse files
authored
Merge pull request swiftlang#33993 from gottesmm/pr-4d8068ca7444a12f86cda79e0ad453ce40de03aa
[gardening] Add a test case for swiftlang#33984
2 parents 9afad73 + fb88f26 commit 4586f1a

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
// Test that makes sure the pass pipeline respects the frontend option sil-stop-optzns-before-lowering-ownership
2+
//
3+
// RUN: %target-swift-frontend -sil-stop-optzns-before-lowering-ownership -Osize -emit-sil %s | %FileCheck %s
4+
// RUN: %target-swift-frontend -sil-stop-optzns-before-lowering-ownership -O -emit-sil %s | %FileCheck %s
5+
6+
public class Klass {}
7+
8+
// CHECK-LABEL: sil [ossa] @$s48sil_stop_optzns_before_lowering_ownership_option7theFuncAA5KlassCyF : $@convention(thin) () -> @owned Klass {
9+
public func theFunc() -> Klass { Klass() }

0 commit comments

Comments
 (0)