blob: 829e844304015159e307a72a7ad9458fd0d9ae37 [file] [log] [blame]
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -emit-sil %s | FileCheck %s
import ctypes
struct S {
let a: Int
let b: Int
let c: Int
}
struct T {
let v: StructWithBitfields
let s: S
init(v: StructWithBitfields, s: S) {
self.v = v
self.s = s
}
}
// CHECK-LABEL: sil hidden @_TFV42predictable_memopt_unreferenceable_storage1TCfT1vVSC19StructWithBitfields1sVS_1S_S0_
// CHECK: bb0(%0 : $StructWithBitfields, %1 : $S, %2 : $@thin T.Type):
// CHECK: [[RESULT:%.*]] = struct $T (%0 : $StructWithBitfields, %1 : $S)
// CHECK: return [[RESULT]]