Skip to content

Commit a738087

Browse files
gottesmmmeg-gupta
authored andcommitted
[gardening] Add a test case for swiftlang#33984
I had this originally before landing swiftlang#33984, but it got merged while rebasing into the wrong patch by mistake. Upstreaming ti now as a result.
1 parent 75745db commit a738087

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)