Files
swift-mirror/test/IRGen/undef.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

19 lines
518 B
Plaintext

// RUN: %target-swift-frontend -emit-ir %s | %FileCheck %s
// REQUIRES: CPU=x86_64
import Builtin
// CHECK: define{{( dllexport)?}}{{( protected)?}} swiftcc void @undefined() {{.*}} {
// CHECK: entry:
// CHECK: store i64 undef, i64* undef, align 8
// CHECK: store i8 undef, i8* undef, align 8
// CHECK: store i8* undef, i8** undef, align 8
// CHECK: ret void
// CHECK: }
sil @undefined : $() -> () {
entry:
store undef to undef : $*(Builtin.Int64, Builtin.Int8, Builtin.RawPointer)
return undef : $()
}