blob: aefe4a5e78f6d9d0ae42a1b472994f2f5518ee36 [file] [log] [blame]
// Test that makes sure the pass pipeline respects the frontend option sil-stop-optzns-before-lowering-ownership
//
// RUN: %target-swift-frontend -sil-stop-optzns-before-lowering-ownership -Osize -emit-sil %s | %FileCheck %s
// RUN: %target-swift-frontend -sil-stop-optzns-before-lowering-ownership -O -emit-sil %s | %FileCheck %s
public class Klass {}
// CHECK-LABEL: sil [ossa] @$s48sil_stop_optzns_before_lowering_ownership_option7theFuncAA5KlassCyF : $@convention(thin) () -> @owned Klass {
public func theFunc() -> Klass { Klass() }