mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
...and repurpose "SC" for (C)lang-importer-synthesized decls, instead of just decls that are C-like instead of ObjC-like. (See next commits.)
21 lines
620 B
Swift
21 lines
620 B
Swift
// 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 @_T042predictable_memopt_unreferenceable_storage1TVACSo19StructWithBitfieldsV1v_AA1SV1stcfC
|
|
// CHECK: bb0(%0 : $StructWithBitfields, %1 : $S, %2 : $@thin T.Type):
|
|
// CHECK: [[RESULT:%.*]] = struct $T (%0 : $StructWithBitfields, %1 : $S)
|
|
// CHECK: return [[RESULT]]
|