Files
swift-mirror/test/IRGen/nondominant.sil
Michael Gottesman fd4828e40a Eliminate -assume-parsing-unqualified-ownership-sil from tests.
I am doing this separately from the actual change to eliminate the option to
make it easier to review.
2018-12-19 12:54:13 -08:00

35 lines
682 B
Plaintext

// RUN: %target-swift-frontend -emit-ir %s | %FileCheck %s
// REQUIRES: CPU=i386 || CPU=x86_64
import Builtin
// Various tests for SIL that doesn't happen to appear in dominance order.
sil @test0 : $@convention(thin) () -> (Builtin.Int8) {
bb0:
br bb1
bb2:
return %0 : $Builtin.Int8
bb1:
%0 = integer_literal $Builtin.Int8, 7
br bb2
}
// CHECK: define{{( dllexport)?}}{{( protected)?}} swiftcc i8 @test0()
// CHECK-NOT: }
// CHECK: ret i8 7
// CHECK-NOT: }
// CHECK: }
// Just don't crash on this one.
sil @test1 : $@convention(thin) () -> (Builtin.Int8) {
bb0:
br bb2
bb1:
br bb2
bb2:
%0 = integer_literal $Builtin.Int8, 7
return %0 : $Builtin.Int8
}